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 have a fex that shows Group, Department, BadDebt, Charges and Percenatge. Percenatge is a compute: (Bad Debt / Charges) *100.
I need to add a subtotal on Department.
Best I can do so far is get the BadDebt and Charges correctly subtotalled with an AVERAGE of my Percentage column. I want the fex to be able to claculate the Percentage at the Deptartment level based on the subtotalled BadDebt and Charges.
The code below works...allbeit is providing an average on my percentages...not really what I want...
TABLE FILE HOLDMERGE SUM HOLDMERGE.HOLDMERG.BADDEBT AS 'Bad Debt' HOLDMERGE.HOLDMERG.CHGS AS 'Charges' COMPUTE PERCENTAGE/D12.2 = ( HOLDMERGE.HOLDMERG.BADDEBT / HOLDMERGE.HOLDMERG.CHGS ) * 100; AS 'Percentage'
BY LOWEST J0.TBLMSTR_BANBRBANAMEXREF.IDXSPECIALTY BY LOWEST J0.TBLMSTR_BANBRBANAMEXREF.RPTBANBR BY J0.TBLMSTR_BANBRBANAMEXREF.RPTBANAME
ACROSS LOWEST HOLDMERGE.HOLDMERG.FY ACROSS LOWEST HOLDMERGE.HOLDMERG.PERIOD AS 'Period'
ON J0.TBLMSTR_BANBRBANAMEXREF.IDXSPECIALTY SUBTOTAL HOLDMERGE.HOLDMERG.BADDEBT HOLDMERGE.HOLDMERG.CHGS AVE. PERCENTAGE AS '*TOTAL' WHERE HOLDMERGE.HOLDMERG.FY EQ 2014;This message has been edited. Last edited by: <Kathryn Henning>,
DEFINE FILE CAR FY/A4 = '2014'; PRD/A3 = 'JAN'; END TABLE FILE CAR SUM DEALER_COST RETAIL_COST COMPUTE PCT/D12.2% = (DEALER_COST/RETAIL_COST) * 100; BY COUNTRY BY CAR BY MODEL ACROSS FY AS '' ACROSS PRD AS '' ON COUNTRY SUMMARIZE END
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004
I actualyy got it working this way: TABLE FILE HOLDMERGE SUM HOLDMERGE.HOLDMERG.BADDEBT AS 'Bad Debt' HOLDMERGE.HOLDMERG.CHGS AS 'Charges' COMPUTE PERCENTAGE/D12.2 = ( HOLDMERGE.HOLDMERG.BADDEBT / HOLDMERGE.HOLDMERG.CHGS ) * 100; AS 'Percentage' BY LOWEST J0.TBLMSTR_BANBRBANAMEXREF.IDXSPECIALTY BY LOWEST J0.TBLMSTR_BANBRBANAMEXREF.RPTBANBR BY J0.TBLMSTR_BANBRBANAMEXREF.RPTBANAME ACROSS LOWEST HOLDMERGE.HOLDMERG.FY ACROSS LOWEST HOLDMERGE.HOLDMERG.PERIOD AS 'Period'
ON J0.TBLMSTR_BANBRBANAMEXREF.IDXSPECIALTY RECOMPUTE SUM. 'HOLDMERGE.HOLDMERG.BADDEBT' SUM. 'HOLDMERGE.HOLDMERG.CHGS' PERCENTAGE AS '*TOTAL' WHERE HOLDMERGE.HOLDMERG.FY EQ 2014; ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET BYDISPLAY ON