Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Subtotal display but not in grand total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Subtotal display but not in grand total
 Login/Join
 
Silver Member
posted
Good Morning. WF 7.0.3

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,
 
Posts: 37 | Registered: January 11, 2008Report This Post
Silver Member
posted Hide Post
Here is an example using the CAR item.

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
 
Posts: 37 | Registered: January 11, 2008Report This Post
Virtuoso
posted Hide Post
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, 2006Report This Post
Silver Member
posted Hide Post
Thank you. It works.
 
Posts: 37 | Registered: January 11, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Subtotal display but not in grand total

Copyright © 1996-2020 Information Builders