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 report where i have to calculate for column total, after column total i have a calculate where one CNT_Field is count of row and other filed is sum for column
TABLE FILE CAR PRINT SEATS SALES BY CAR WHERE CAR IN ('AUDI','BMW') ON TABLE COLUMN-TOTAL AS 'TOTAL' SEATS SALES ON TABLE PCHOLD FORMAT HTML END
<u>
CAR SEATS SALES </u>
AUDI 5 7800
BMW 5 8950
4 8900
5 14000
5 18940
5 14000
5 15600
TOTAL 34 88190
34*12 408
GrantTotal 88598
above calculation how to do Grand Total
This message has been edited. Last edited by: Tamra,
WebFOCUS 8202
Posts: 61 | Location: India | Registered: March 24, 2014
This could be a way that gives exactly the numbers that you're looking at:
TABLE FILE CAR
SUM COMPUTE T1 /D10 = SEATS; NOPRINT
COMPUTE T2 /D10 = SALES; NOPRINT
COMPUTE T11 /D10 = T1 * 12; AS 'SEATS INCREASED'
COMPUTE TOT /D10 = T11 + T2; AS 'GRAND TOTAL'
BY TOTAL COMPUTE CAR /A10 = '';
PRINT SEATS
SALES
BY CAR
WHERE CAR IN ('AUDI','BMW');
ON TABLE COLUMN-TOTAL AS 'TOTAL' SEATS SALES
ON TABLE PCHOLD FORMAT HTML
END
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
-* File dev05.fex
TABLE FILE CAR
PRINT
SEATS SALES
BY CAR
WHERE CAR IN ('AUDI','BMW')
ON TABLE COLUMN-TOTAL AS 'TOTAL' SEATS SALES
ON TABLE RECAP
PI/I5=SEATS * 12;
GT/I6=SALES + PI;
ON TABLE SUBFOOT
" <+0>PI<PI"
"Grand<+0>Total<GT"
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=TABFOOTING,
HEADALIGN=BODY,
JUSTIFY=RIGHT,
$
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006