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] Suppressing Grand Total only when 1 "Department" is selected

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Suppressing Grand Total only when 1 "Department" is selected
 Login/Join
 
<Rich1002>
posted
I'm trying to suppress GRAND TOTAL when the user selects only one "Department" from a drop-down list, so that the totals for that department are not repeated.
When the user selects more than 1 department, I want to keep the grand total for all departments, as well as totals for each department.
I've tried Multilines and/or NOTOTAL in combination or each on its own, with either SUMMARIZE or RECOMPUTE. I either always get grand totals, or never get grand totals when selecting 1 or more departments. Any suggestions? Thanks!

This message has been edited. Last edited by: Kerry,
 
Report This Post
Expert
posted Hide Post
You most likely have a variable that tells you how many Departments were selected. Test that and create a variable that disables the Grand Total when only one Department is selected. Something like this:

-SET &COUNTRY0 = 2;
-SET &COUNTRY1 = 'ENGLAND';
-SET &COUNTRY2 = 'JAPAN';

-SET &GRTOT = IF &COUNTRY0 EQ 1 THEN 'ON TABLE NOTOTAL' ELSE '';

TABLE FILE CAR
SUM
SALES/D10
BY COUNTRY
BY CAR

ON COUNTRY SUBTOTAL MULTILINES AS 'TOTAL'

WHERE COUNTRY IN (
-REPEAT REP1_END FOR &COUNTER FROM 1 TO &COUNTRY0

'&COUNTRY.&COUNTER'
-REP1_END
)
&GRTOT
END


Set &COUNTRY0 to 1 to see the behaviour.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
There is also the WHEN command which allows conditional presentation of subtotals, subfoots, subheads, etc.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
Unfortunately not for Grand Totals.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<Rich1002>
posted
Francis and Ginny,

Thanks again for your inup. I tried Francis' approach, and it works great!

Rich
 
Report This Post
Virtuoso
posted Hide Post
You can create a dummy extra byfield as the first by field.
then you can use the when statement




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report 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] Suppressing Grand Total only when 1 "Department" is selected

Copyright © 1996-2020 Information Builders