Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Calculate Percent at the Total/Subtotal level

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Calculate Percent at the Total/Subtotal level
 Login/Join
 
Platinum Member
posted
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
 
Posts: 204 | Registered: March 31, 2008Report This Post
Gold member
posted Hide Post
use recompute not summarize


WF 8.2.01M
8.2.01M Reporting Server
Windows 2012 Srvr R2
PDF,Excel, HTML
Graphs - a lot of graphs
 
Posts: 60 | Location: Atlanta, GA | Registered: October 30, 2003Report This Post
Platinum Member
posted Hide Post
With MULTILINES there is no summary by Country, without I get a summary line per car but all 0%


Reporting Server 7.6.10
Dev. Studio 7.6.8
Windows NT
Excel, HTML, PDF
 
Posts: 204 | Registered: March 31, 2008Report This Post
Expert
posted Hide Post
Hi Rick,

You may want to try the following code:

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, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Calculate Percent at the Total/Subtotal level

Copyright © 1996-2020 Information Builders