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     Row-Total Percentages.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Row-Total Percentages.
 Login/Join
 
<focusermgic>
posted
Trying to do a Row-Total, however I have a percentage in this 'Row-Total' and need it to compute the total percentage and NOT sum it. I also have subtotals. So the report has a subtotals and row-totals. In the subtotals and row-totals there is a percentage. I figured out how to get the percentage to compute rather than sum in the subtotal, BUT now I can't figure out how to get the row-totals to compute the percentage rather than sum them. This is what my code looks like....

TABLE FILE HOLD1
SUM TOTAL1 AS 'TOTAL' SKIP-LINE OVER
MI OVER
COMPUTE CUMPCT/P6.1=(MI/TOTAL1)*100; AS '%'
BY ORGN PAGE-BREAK NOPRINT
BY ISSUENAME NOPRINT
BY POOLNO
BY ISSUENAME RECOMPUTE MULTILINES
-*ON ORGN RECOMPUTE MULTILINES ROW-TOTAL AS 'GRAND TOTAL'
ON ORGN SUMMARIZE
ACROSS MONTH
ON TABLE SUMMARIZE
HEADING
"PAGE <TABPAGENO <93 Contract Underwriting"
"<77 Pacific Region Volume By Pool Name - Ref# 742"
"<99 &CURRMON <103 &CURRENTYEAR"
" "
"<ORGN"
" "
END

Please help!
 
Report This Post
Expert
posted Hide Post
you can't use row-total
you have to use a compute , after your across, and actually crank out the formula for the value you want. (i actually learned this from another FocalPointer)
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<focusermgic>
posted
Can you explain in more detail?
Are you saying I should do this....
ACROSS MONTH RECOMPUTE
 
Report This Post
Member
posted Hide Post
If you use the command RECOMPUTE instead of SUMMARIZE it will actually recompute at your sort break. This will recompute your percentage formula based on the subtotals also at the break level.
 
Posts: 3 | Registered: February 15, 2006Report This Post
Expert
posted Hide Post
Hi focusermgic,

Has this issue been resolved for you? Many thinks to pointers from Susannah and acavasos. Smiler

I ran a quick search on Focal Point and came across the following topics which may be of interest:

Calculate the percentage of a group value from a total sum

differnt formatting on data rows and subtotals

Prefix operators with ROW-TOTAL

Hope this helps.

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     Row-Total Percentages.

Copyright © 1996-2020 Information Builders