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.
im getting a bit lost in trying to use RECAP, SUMMARIZE or RECOMPUTE. I would like calculate spend value/overall spend value across orgunits. The pseudo code is unfortunately not working...and not in the right place ..
Is it possible to limit the output on the row-total colum MYSPENDCHECK?
TABLE FILE SOME_INVOICEDATA SUM COMPUTE MYSPENDCHECK\I1 = IF NET_VALUE_EUR GT 0 THEN 1 ELSE 0; -*Pseudo code -> COMPUTE MYCALC\D20.2 = IF NET_VALUE_EUR GT 0 THEN (NET_VALUE_EUR / (ROW-TOTAL from (NET_VALUE_EUR)) ) * 100; AS 'ORGUnitsPercentageFromSpend' NET_VALUE_EUR BY PARTNER_ID BY PARTNER_NAME ACROSS ORGNAME AS 'ORGUNIT' ROW-TOTAL AS 'OVERALL' -*not sure how to address the row-total colum of MYSPENDCHECK not working is this --> WHERE TOTAL MYSPENDCHECK GT 3; WHERE PARTNER_ID IN FILE MYUMSNET; ON TABLE SET PAGE-NUM OFF ON TABLE SET ASNAMES ON ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K END
Thank you for any ideas!This message has been edited. Last edited by: <Kathryn Henning>,
----------------------------- PROD WF 7.7.02, PMF 5.2.3, MSQL 2005 QA WF 7.7.02, PMF 5.2.3, MSQL 2005 Primarily self-service; adapters: SAP BW, SAP R/3, SQL Server, FlexEnable Windows, all output
Posts: 22 | Location: Germany | Registered: December 17, 2009
COMPUTE MYCALC\D20.2 = IF NET_VALUE_EUR GT 0 THEN ( NET_VALUE_EUR / ( TOT.NET_VALUE_EUR ) ) * 100;
But personally I don't like it because I have no control over the TOT. Sometimes I need a TOT within certain BY's fields and not the grand-total.
I usually make sure I have a seperated ( pre calculated ) column with the total I like to use do such calculations.
TABLE FILE CAR
SUM SALES AS 'TOTAL_SALES'
SUM SALES AS 'CAR_SALES'
BY CAR
ON TABLE HOLD AS X
END
TABLE FILE X
SUM TOTAL_SALES
CAR_SALES
COMPUTE PART/D12.2 = ( CAR_SALES / TOTAL_SALES ) * 100;
BY CAR
ON TABLE PCHOLD FORMAT HTML
END
You might want to lookup 'WITHIN' aswell in the documentation. ( or click 'options' on a SUM field an that a look at the third tab. )
g'luck, Dave
_____________________ WF: 8.0.0.9 > going 8.2.0.5
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010