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.
Hi, I have a report which shows data AS BELOW. eg: name total amt1 amt2 ---------------------------------- xx 1000 250 750 ww 1500 500 1000 qq 750 600 150 ---------------------------------- TOTAL 3250 1350 1900 41.5% 58.5%
For the column total values I have used ON TABLE COLUMN-TOTAL. Now I need to display the percentage values correctly aligned .
If you're calculating the percentage, just use SUMMARIZE instead of COLUMN-TOTAL. If these values are database fields in a PRINT statement, use a mutli-verb request with RECAP. Try this.
TABLE FILE CAR SUM RCOST NOPRINT DCOST NOPRINT CNT.RCOST NOPRINT PRINT RCOST DCOST BY COUNTRY ON TABLE RECAP RCOST_AVG/D8.2 = (C1/C3); DCOST_AVG/D8.2 = (C2/C3); ON TABLE SUBFOOT " Average RCOST: <RCOST_AVG DCOST: <DCOST_AVG" END
TABLE FILE CAR SUM RETAIL_COST DEALER_COST BY COUNTRY ON TABLE SUMMARIZE -*( we can use ON TABLE COLUMN-TOTAL as well) END
This will give me the following output
COUNTRY RETAIL_COST DEALER COST ---------- ------------ ------------- ENGLAND 45,319 37,853 FRANCE 5,610 4,631 ITALY 51,065 41,235 JAPAN 6,478 5,512 W GERMANY 64,732 54,563 ---------------------------------------- TOTAL 173,204 143,794 83.02%
I need to calculate the percentage value( 83.02 = (143,794/173,204) *100 ) and place it under the column dealer cost.
I am not sure of a way to refer to the summary values as such.
Thanks for your posts, I was able to get the percentage values. I used ON TABLE COLUMN-TOTAL & then Using RECAP on cloumns & Printing the values in the SUBFOOT.
Now the problem is I'm not able to align the percentage values with the respective columns.
i tried the following way... ------------------------------------------- ON TABLE SUBFOOT "<VAL1><+0><VAL2><0+><VAL3>"
ON TABLE SET STYLESHEET * TYPE =SUBFOOT, OBJECT=FIELD, ITEM=1, STYLE=ITALIC, POSITION=N3, $ TYPE =SUBFOOT, OBJECT=FIELD, ITEM=2, STYLE=ITALIC, POSITION=N4, $
TYPE =SUBFOOT, OBJECT=FIELD, ITEM=3, STYLE=ITALIC, POSITION=N5, $ ------------------------------------------------- I just get the three values printed on leftside corner & not aligned to the columns as mentioned in stylesheet.