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     [CLOSED] Subtotal below and above

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Subtotal below and above
 Login/Join
 
Silver Member
posted
I posted this another topic that was already closed. Wasn't sure if anyone was seeing it I apologize if its double posted now.

I can across this feature which I love. However, I was wondering if anyone can tell me if you can have a combination of above and below. I would like my subtotals below but I want my grand total above. I've tried
On "BY FIELD" SET SUBTOTAL BELOW
ON TABLE SET TOTAL-COLUMN ABOVE
with "By Field" being a sorted field in procedure.

I'm a missing something or it not possible to combine the two in one procedure?

This message has been edited. Last edited by: <Kathryn Henning>,


WEBFOCUS 7.14
WEBFOCUS.8.04
 
Posts: 44 | Registered: March 30, 2007Report This Post
Gold member
posted Hide Post
Considering the SUBTOTALS ABOVE is a set for the entire report I would not expect that it would be possible to set it per column.

One way you could get a grand total above is to calculate it yourself and then show it as a heading or subhead. Here is an example how you could do either. The styling is to make the subhead look like a normal subtotal line and may need to change based on how many BY fields and/or if it messes with any other styling.

TABLE FILE CAR
SUM
DEALER_COST AS 'GRAND_DEALER_COST'
RETAIL_COST AS 'GRAND_RETAIL_COST'
SUM
DEALER_COST
RETAIL_COST
BY COUNTRY
BY CAR
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS HOLD_CAR
END

DEFINE FILE HOLD_CAR
-* Just so the grand total line does not show up more than once
GRAND_TOTAL_HEADING/A1='';
END
TABLE FILE HOLD_CAR
PRINT
DEALER_COST
RETAIL_COST
BY GRAND_TOTAL_HEADING NOPRINT
BY COUNTRY
BY CAR
HEADING
"Grandtotals:"
"  Dealer Cost=<GRAND_DEALER_COST"
"  Retail Cost=<GRAND_RETAIL_COST"
ON GRAND_TOTAL_HEADING SUBHEAD
"TOTAL<GRAND_DEALER_COST<GRAND_RETAIL_COST"
ON COUNTRY SUBTOTAL
ON TABLE NOTOTAL
ON TABLE SET STYLE *
TYPE=SUBHEAD,HEADALIGN=BODY,$
TYPE=SUBHEAD,LINE=1,ITEM=1,COLSPAN=2,JUSTIFY=LEFT,$
TYPE=SUBHEAD,LINE=1,JUSTIFY=RIGHT,$
ENDSTYLE
END


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 78 | Registered: November 08, 2010Report This Post
Silver Member
posted Hide Post
Sorry for the delayed response. This was very helpful and I did use this technique but had to do some other fancy stuff because of the complexity of my report. But this point me well on my way.


WEBFOCUS 7.14
WEBFOCUS.8.04
 
Posts: 44 | Registered: March 30, 2007Report 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     [CLOSED] Subtotal below and above

Copyright © 1996-2020 Information Builders