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     [SOLVED] Percentage of sub-total rather than percetage of grand total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Percentage of sub-total rather than percetage of grand total
 Login/Join
 
Member
posted
Hello all.

I am able to get the revenue percentage for each given entry using PCT as follows:

COMPUTE MTDRevenue_PoT/D7.4% = PCT.MTDRevenue;

This works beautifully but is based on the grand total of the report. If, however, the report was subtotaling by month I would want to show this same percentage of revenue for each month. As such, is there a similar helpful "PCT" command to get this, such as SUBPCT or something to that effect?

Thanks all!

Edit: I found the following example that appears like it would work, but I receive a parsing error on "WITHIN":

COMPUTE MTDRevenue_PoG/D7.4% = PCT.MTDRevenue WITHIN RevenueMonth; AS 'Monthly Percent'

RevenueMonth is the primary "BY".

This message has been edited. Last edited by: Jeff-TTC,


WebFocus Server 8.2.01M
WebFocus App Studio 8.2.01M
Windows Server 2012 R2 Standard
All Outputs
 
Posts: 6 | Registered: November 20, 2017Report This Post
Virtuoso
posted Hide Post
Try this:
  
TABLE FILE CAR
SUM PCT.RCOST WITHIN COUNTRY NOPRINT
COMPUTE JEFF/D6.2%=C1;
BY COUNTRY SUBTOTAL
BY CAR
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Member
posted Hide Post
That worked!

Thanks much!


WebFocus Server 8.2.01M
WebFocus App Studio 8.2.01M
Windows Server 2012 R2 Standard
All Outputs
 
Posts: 6 | Registered: November 20, 2017Report This Post
Virtuoso
posted Hide Post
Jeff,
That it worked is a fact.
The question is: do you understand?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [SOLVED] Percentage of sub-total rather than percetage of grand total

Copyright © 1996-2020 Information Builders