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] Adding an average line after grand totals

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Adding an average line after grand totals
 Login/Join
 
Silver Member
posted
When I add an average line after grand total, it drops off grand total line. Can someone help me to add average line right below grand total line? I want to have RECOMPUTE by sort break and then grand total and average.

SET SUMMARYLINES=EXPLICIT

TABLE FILE MOVIES
PRINT
COPIES
LISTPR
WHOLESALEPR
COMPUTE AVGPR/F6.2 = LISTPR / COPIES;
DIRECTOR

BY RATING
BY CATEGORY

ON RATING RECOMPUTE
ON TABLE SUMMARIZE AS 'Grand Total'
-*ON TABLE SUBTOTAL
-* AVE. LISTPR
-* AVE. WHOLESALEPR AS 'AVE'
END

Thank you,

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


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
<FreSte>
posted
JJ,

Maybe something like this ?

SET SUMMARYLINES=EXPLICIT 

TABLE FILE MOVIES
PRINT
COPIES
LISTPR
WHOLESALEPR
COMPUTE AVGPR/F6.2 = LISTPR / COPIES;
DIRECTOR

BY RATING
BY CATEGORY
WHERE RATING IN ('G','PG13');

ON RATING RECOMPUTE

ON TABLE SUMMARIZE AS 'Grand Total'
ON TABLE RECOMPUTE 
ON TABLE SUBFOOT
"Average<+0> <+0> <AVE.LISTPR  <AVE.WHOLESALEPR <+0>"
ON TABLE SET STYLE *
TYPE=TABFOOTING ,HEADALIGN=BODY ,JUSTIFY=RIGHT ,$
TYPE=TABFOOTING ,HEADALIGN=BODY ,OBJECT=TEXT, JUSTIFY=LEFT ,$
END
 
Report This Post
Silver Member
posted Hide Post
FreSte,
Thank you for the quick reply. It is the way I wanted to display average but if you look at the two averages(29.98 and 19.99) are not the actual average values. Any ideas?

Thanks again,


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report This Post
<FreSte>
posted
Then I would suggest you calculate the right values as a computed field and put those in the subfoot

SET SUMMARYLINES=EXPLICIT 

TABLE FILE MOVIES
PRINT
COPIES
LISTPR
WHOLESALEPR
COMPUTE AVGPR/F6.2 = LISTPR / COPIES;
COMPUTE AVG1/D12.2 = TOT.LISTPR/TOT.COPIES; NOPRINT
COMPUTE AVG2/D12.2 = TOT.WHOLESALEPR/TOT.COPIES; NOPRINT
DIRECTOR

BY RATING
BY CATEGORY
WHERE RATING IN ('G','PG13');

ON RATING RECOMPUTE

ON TABLE SUMMARIZE AS 'Grand Total'
ON TABLE RECOMPUTE 
ON TABLE SUBFOOT
"Average<+0> <+0> <AVG1<AVG2  <+0> <+0>"
ON TABLE SET STYLE *
TYPE=TABFOOTING ,HEADALIGN=BODY ,JUSTIFY=RIGHT ,$
TYPE=TABFOOTING ,HEADALIGN=BODY ,OBJECT=TEXT, JUSTIFY=LEFT ,$
END
 
Report This Post
Silver Member
posted Hide Post
FreSte - Thank you.


WebFOCUS 8.2.05
Windows 2003
Excel, HTML, PDF
 
Posts: 47 | Registered: April 22, 2009Report 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] Adding an average line after grand totals

Copyright © 1996-2020 Information Builders