As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
If you run this code all the percentages get calculated and recalculated correctly except for the per cent total at the total country level. (percent to total = 2/18 and percent to country = 2/4 for example for the Jaguar.) You can see total count gets to be zero at the 'Total Country England' level. The percentage should be recalculated as 4/18 = 22.2%. Any ideas on how to do that are appreciated.
TABLE FILE CAR
SUM CNT.BODYTYPE
SUM
CNT.BODYTYPE
BY COUNTRY
SUM
CNT.BODYTYPE
BY COUNTRY
BY CAR
SUM
COMPUTE C1/D12 = C1; AS 'TOTAL'
COMPUTE C2/D12 = C2; AS 'TOTCNTRY'
COMPUTE C3/D12 = C3; AS 'TOTCAR'
COMPUTE PCT_TOTAL/D12.2% = C3/C1 * 100;
COMPUTE PCT_CNTRY/D12.2% = C3/C2 * 100;
BY COUNTRY
BY CAR SUMMARIZE MULTILINES
END
This message has been edited. Last edited by: Kerry,
Reporting Server 7.6.10 Dev. Studio 7.6.8 Windows NT Excel, HTML, PDF
TABLE FILE CAR
SUM
CNT.BODYTYPE WITHIN TABLE NOPRINT
CNT.BODYTYPE WITHIN COUNTRY NOPRINT
CNT.BODYTYPE WITHIN CAR NOPRINT
CNT.COUNTRY WITHIN CAR NOPRINT
COMPUTE TOT1/D12 = C1/C4; AS 'TOTAL '
COMPUTE TOT2/D12 = C2/C4; AS 'TOTCNTRY '
COMPUTE TOT3/D12 = C3/C4; AS 'TOTCAR '
COMPUTE PCT_TOTAL/D12.2% = TOT2/TOT1 * 100;
COMPUTE PCT_CNTRY/D12.2% = TOT3/TOT2 * 100;
BY COUNTRY
BY CAR SUMMARIZE MULTILINES
ON TABLE SET STYLE *
GRID=OFF,$
END
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004