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.
How can I compute the percentage of a group value from the hole dataset when the fex has a where condition and not showing the hole data. Maybe I have to execute an extra fex before which calculates the sum of all values an pass the result to a variable. As well how can I put the results in an extra line before the sub-total
..Field_A......Field_B....Field_C Sub-Total........10.........500 %of Total........10%........50%..wanted Result fex with "where (Field A EQ yyy);"
Total of the hole dataset is Field B = 100 and Field C = 1000
Can somebody help me, thanks Alfred
Posts: 12 | Location: Linz, Austria | Registered: February 03, 2004
Simple answer is you can't unless you do one of the following.
Either create a holdfile with the total values in it, and join that hold file to your holdfile with the data extracted using your WHERE statement and then calculate your percentage.
Or remove your WHERE criteria and put them in a define. E.g. DEFINE FILE filename FIELDA/I5=IF FIELDA EQ 'xyz' THEN FIELDA ELSE 0; END
you can then use this new field for your calculation instead.
Posts: 123 | Location: UK | Registered: October 09, 2003
Never say never. <grin> Let everything into the report,and then eliminate by WHERE TOTAL. In my case, I'm using CAR, and only BODYTYPE = sedan is to show on the report: TABLE FILE CAR SUM PCT.SALES NOPRINT PCT.RCOST NOPRINT PCT.DCOST NOPRINT BY BODYTYPE ON BODYTYPE SUBFOOT "TOTAL <ST.SALES> <ST.RCOST> <ST.DCOST>" "PCT <PCT.SALES> <PCT.RCOST> <PCT.DCOST></1" PRINT SALES RCOST DCOST BODYTYPE NOPRINT BY BODYTYPE WHERE TOTAL BODYTYPE EQ 'SEDAN' END
Posts: 60 | Location: 2 penn | Registered: May 22, 2003