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 total on only few columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]How to get total on only few columns
 Login/Join
 
Guru
posted
Hi,

I have the below piece of code :

Table file abc
print
column1
column2
column3
column4
column5
column6
by column1 noprint
END
-RUN
-EXIT

Now I need to get total on only these columns namely:Column2 thru' Column4.

I tried doing it using Total but it isn't working.

Any hints/thoughts on the same.
Thanks a lot in advance!

-IP

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
Virtuoso
posted Hide Post
Remember that you can specify columns to subtotal, and that the point of subtotal can be a sort field or the complete request (table):
ON [BY field / TABLE] SUBTOTAL column2 column3 column4


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Guru
posted Hide Post
Hi Alan,

Thanks for the very quick response and for the solution.
But am looking for TOTAL and not for subtotal.

Thanks,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Virtuoso
posted Hide Post
IP,
Add a dummy sort NOPRINT and SUBTOTAL columns on the dummy sort.


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
Guru
posted Hide Post
Hi Danny,

Thanks for the response and for the help.
If Iam using something like this below :
ON COLUMN1 SUBTOTAL column2 column3 column4

Please let me know how to rename the subtotal to say total...

I tried doing this :

ON COLUMN1 SUBTOTAL AS 'TOTAL' column2 column3 column4 , but it is throwing an error message.

Thanks a lot in advance!

Regards,
IP


Webfocus 8105 Developer studio,Windows 7,HTML,Excel,PDF,Text,Infoassist,Graph,AHTML
 
Posts: 270 | Registered: October 30, 2014Report This Post
Expert
posted Hide Post
quote:
ON COLUMN1 SUBTOTAL AS 'TOTAL' column2 column3 column4

You can save yourself so much time instead of waiting for replies, by locating this information and much more by referencing the manuals - Recalculating Values for Subtotal Rows

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
IP
You appear to be missing the point. You can use SUBTOTAL as a TOTAL by stipulating TABLE as the sort break:
TABLE FILE CAR
PRINT RCOST DCOST SALES
BY COUNTRY
ON TABLE SUBTOTAL DCOST AS 'Total'
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Guru
posted Hide Post
Hi,

Thanks Danny,Tony and Alan.
It worked.

Regards,IP


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
Or you can use ON TABLE COLUMN-TOTAL column3 column5 etc.


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
  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 total on only few columns

Copyright © 1996-2020 Information Builders