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]How to get subtotal for few columns only and not for other columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]How to get subtotal for few columns only and not for other columns
 Login/Join
 
Guru
posted
Hi,

Iam using the below piece of code and Iam doing a subtotal on the COL3 and Iam getting the subtotal for MON_RESULTS till COL_DOLLAR but I need the Subtotal only from MON_RESULTS till Total column.

Can anyone please let me know how to not show the subtotal for these 2 columns namely - COL_PERCENT and COL_DOLLAR.

TABLE FILE SQLOUT
PRINT
COL1
COL2
COL3
COL4
MON_RESULTS
TUE_RESULTS
WED_RESULTS
THUR_RESULTS
FRI_RESULTS
SAT_RESULTS
TOTAL
COL_PERCENT
COL_DOLLAR
COL9_text
BY COL3 NOPRINT
ON TABLE PCHOLD FORMAT EXL2K
ON COL3 SUBTOTAL
END
-RUN
-EXIT

Thanks a lot in advance!

Regards!

This message has been edited. Last edited by: info4pal,


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Master
posted Hide Post
Check below code.

If you are looking for documentation, please check below link for more details.
http://infocenter.informationb...s.com/wf80/index.jsp


APP PATH IBISAMP
TABLE FILE CAR
SUM
SALES
DEALER_COST
COMPUTE PCT_DEALER_COST/D20.2%=PCT.DEALER_COST;
RETAIL_COST
BY COUNTRY
ON COUNTRY SUBTOTAL DEALER_COST RETAIL_COST
ON TABLE SET PAGE-NUM NOLEAD
END


Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Master
posted Hide Post
As Ram indicates, the default for SUBTOTAL is to subtotal all numeric fields (including percentages, which makes the result ridiculous). To subtotal only specific fields, just identify them after the SUBTOTAL command. Any fields not specifically mentioned will be ignored.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Guru
posted Hide Post
Hi,

Thanks Ram for the solution.It helped!

George - Thanks a lot for the explanation as well!It was helpful.

Regards,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report 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]How to get subtotal for few columns only and not for other columns

Copyright © 1996-2020 Information Builders