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.
Looking for help displaying the column total within a subgroup but not displaying the value in the grand total.
The column in question is "PCT.MY_COMPARE/D6.2% WITHIN MY_JUDGE2 WITHIN MO_NM AS '% Compare'".
I would like to show the sum of the values in "ON MY_JUDGE2 SUBTOTAL AS 'Total'" group.
I do not want it in the ON TABLE COLUMN-TOTAL section.
Thank you.
DEFINE FILE HOLD_JUDGE_COMPARE2
MY_REQUIRED/D6.2 = MY_CNT;
MY_COMPARE/D6.2 = MY_CNT;
END
TABLE FILE HOLD_JUDGE_COMPARE2
SUM
PCT.MY_REQUIRED AS '% Required'
MY_CNT/I8C AS '#'
PCT.MY_COMPARE/D6.2% WITHIN MY_JUDGE2 WITHIN MO_NM AS '% Compare'
BY MY_JUDGE2 AS 'Judge Comparison'
BY TASK_RSLT_RSN_DESC AS 'Judge'
ACROSS LOWEST MO_NM AS ''
ON MY_JUDGE2 SUBTOTAL AS 'Total'
ON TABLE SUBHEAD
""
HEADING
""
ON TABLE SET ACROSSPRT COMPRESS
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL PCT.MY_REQUIRED
ON TABLE COLUMN-TOTAL MY_CNT
ON TABLE SUMMARIZE AS 'Total Required'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
This message has been edited. Last edited by: Kathleen Butler,
I would still like to sum the TOTINCOUNTRY within each COUNTRY....but not show it in the grand total.
Thanks.
DEFINE FILE CAR
RETAIL2/D6=RETAIL_COST;
END
TABLE FILE CAR
SUM
CAR.BODY.RETAIL2 NOPRINT
BY CAR.ORIGIN.COUNTRY
SUM
CAR.BODY.RETAIL_COST
COMPUTE TOTINCOUNTRY/D10.4 = 100 * RETAIL_COST / RETAIL2;
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL
ON CAR.ORIGIN.COUNTRY SUBTOTAL AS '*TOTAL'
ON TABLE COLUMN-TOTAL RETAIL_COST
END
Well, I'm afraid that SUBTOTAL alone won't make it. So here is an example using SUBFOOT:
-* File Ubl01.fex
DEFINE FILE CAR
RETAIL2/D6=RETAIL_COST;
DUM/A1=' ';
END
TABLE FILE CAR
SUM
CAR.BODY.RETAIL2 NOPRINT
BY DUM NOPRINT
BY CAR.ORIGIN.COUNTRY
SUM
CAR.BODY.RETAIL_COST
COMPUTE TOTINCOUNTRY/D10.4 = 100 * RETAIL_COST / RETAIL2;
BY DUM NOPRINT
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL
ON TABLE NOTOTAL
ON CAR.ORIGIN.COUNTRY SUBTOTAL AS '*TOTAL'
ON DUM SUBFOOT
"**GRAND TOTAL<CT.RETAIL_COST "
ON TABLE SET STYLE *
TYPE=SUBFOOT, HEADALIGN=BODY, $
TYPE=SUBFOOT, BY=DUM, ITEM=2, COLSPAN=3, 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