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] Subtotal & Subfoot Options print

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Subtotal & Subfoot Options print
 Login/Join
 
Member
posted
Hi,

I have report request where report has three by fields and first by field doing subtotal.
Need to show other subgroup records only on certain values otherwise show the subtotal values.
For example CAR file.
First group is Country and has two subgroups CAR and model and sum the sales.
Want to show the everything when county is England and Japan otherwise show only subtotal for France and other countries

WF 7.7.3 and Windows.

This message has been edited. Last edited by: Kerry,
 
Posts: 13 | Registered: August 06, 2012Report This Post
Platinum Member
posted Hide Post
Here's an example,



TABLE FILE CAR
SUM
SALES
BY COUNTRY SUBTOTAL
WHEN COUNTRY EQ 'ENGLAND'
BY CAR SUBTOTAL
WHEN COUNTRY EQ 'ENGLAND'
END



WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Member
posted Hide Post
Thank you for your suggestion.

But I want to show the CAR and Model if the Country is Equal to England and Japan. For France and other countries show only subtotal sales for this countries and no car and model.

TABLE FILE CAR
SUM
CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY MODEL
BY COUNTRY SUBTOTAL
END
 
Posts: 13 | Registered: August 06, 2012Report This Post
Virtuoso
posted Hide Post
Vir,
Here is one solution.
  
DEFINE FILE CAR
CAR=IF COUNTRY EQ 'ENGLAND' OR 'JAPAN' THEN CAR ELSE ' ';
MODEL=IF COUNTRY EQ 'ENGLAND' OR 'JAPAN' THEN MODEL ELSE ' ';
END
TABLE FILE CAR
SUM SALES
BY COUNTRY  BY CAR BY MODEL
ON COUNTRY SUBTOTAL MULTILINES
END


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
Member
posted Hide Post
Thanks it works fine !

Just minor thing to it, is it possible to hide the detail data for France,Italy or other countries to show only as subtotal. Like Total England, shows as Total France and Total Italy.

Thanks.
 
Posts: 13 | Registered: August 06, 2012Report This Post
Master
posted Hide Post
As Daniel suggested, using DEFINE, COMPUTE, WHEN you should be able to achieve this.
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Virtuoso
posted Hide Post
Vir,
There is nothing WebFOCUS cannot do!
See:
  
DEFINE FILE CAR
XCOUNTRY/A20=COUNTRY;
END
TABLE FILE CAR
SUM SALES
BY COUNTRY BY XCOUNTRY BY CAR BY MODEL
WHERE COUNTRY EQ 'ENGLAND' OR 'JAPAN'
ON TABLE HOLD AS VIR FORMAT ALPHA
END
FILEDEF VIR DISK VIR.FTM (APPEND
DEFINE FILE CAR
CAR=' ';
MODEL=' ';
XCOUNTRY/A20 ='Total ' | COUNTRY;
END
TABLE FILE CAR
SUM SALES 
BY COUNTRY BY XCOUNTRY BY CAR BY MODEL
ON TABLE SAVE AS VIR
END
TABLE FILE VIR
PRINT CAR MODEL SALES
BY COUNTRY NOPRINT
BY XCOUNTRY AS COUNTRY
END


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
Member
posted Hide Post
Thank you all for your suggestions.

Daniel it's working fine great.
 
Posts: 13 | Registered: August 06, 2012Report 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] Subtotal & Subfoot Options print

Copyright © 1996-2020 Information Builders