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.
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,
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, 2013
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, 2013