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]Summarize/Subtotal Rates with Numerator/Denominator

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Summarize/Subtotal Rates with Numerator/Denominator
 Login/Join
 
Silver Member
posted
Hi,

I am trying to show subtotals by two different BY Fields (year and unit) but the results are adding the rates.
So I have one column with the numerator, one column with the denominator, then the third column is column1/column2 for the rate (it is not a compute it is calculated in the metadata).

When I try to subtotal by the year and the unit, it sums the first two columns (correct) but also sums the third column (the rate) when it should be re-calculating it. I tried to use the summarize command but that does not work.

My code is basically:

PRINT
Numerator
Denominator
Rate
BY LOWEST Fiscal_Year
BY LOWEST UNIT
BY LOWEST MONTH_OF_YEAR_NAME AS '' ROWS 'Apr' OVER 'May' OVER 'Jun' OVER 'Jul' OVER 'Aug' OVER 'Sept' OVER 'Oct' OVER 'Nov' OVER 'Dec' OVER 'Jan' OVER 'Feb' OVER 'Mar'

ON Fiscal_Year SUMMARIZE
ON UNIT SUMMARIZE

WHERE ( UNIT EQ &UNIT.(OR(FIND FACT_SELECTED_CMG.UNIT IN FACT_SELECTED_CMG)).UNIT:. );

This message has been edited. Last edited by: hfung1,


8.0.0.2
Windows, All Outputs
 
Posts: 41 | Registered: February 27, 2014Report This Post
Virtuoso
posted Hide Post
As far as I know, you will have to perform a COMPUTE with the first two column and avoid using the third one (calculated rate from metadata).

Having the "COMPUTEd" field already in the metadata it's a good thing while you don't need to summarize (it is faster), otherwise you have to perform the calculation on execution using a COMPUTE.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
look for RECOMPUTE instead of SUMMARIZE


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Virtuoso
posted Hide Post
Still, RECOMPUTE needs a COMPUTEd field to work.

Something such as:
PRINT 
 Numerator 
 Denominator
-* For Percentage Rate, otherwise do not multiply by 100
 COMPUTE Rate /P8.2C = Numerator / Denominator * 100;
BY LOWEST Fiscal_Year
BY LOWEST UNIT
BY LOWEST MONTH_OF_YEAR_NAME AS '' ROWS 'Apr' OVER 'May' OVER 'Jun' OVER 'Jul' OVER 'Aug' OVER 'Sept' OVER 'Oct' OVER 'Nov' OVER 'Dec' OVER 'Jan' OVER 'Feb' OVER 'Mar'

ON Fiscal_Year RECOMPUTE
ON UNIT RECOMPUTE

WHERE ( UNIT EQ &UNIT.(OR(FIND FACT_SELECTED_CMG.UNIT IN FACT_SELECTED_CMG)).UNIT:. );

This message has been edited. Last edited by: MartinY,


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Silver Member
posted Hide Post
Thanks yes it does need to be a compute it works as a compute.


8.0.0.2
Windows, All Outputs
 
Posts: 41 | Registered: February 27, 2014Report 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]Summarize/Subtotal Rates with Numerator/Denominator

Copyright © 1996-2020 Information Builders