Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Supress subfoot line if sub total values is zero
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Supress subfoot line if sub total values is zero
 Login/Join
 
Member
posted
Hi All,

I am having scenario like showing all subtotal values in subfoot.
I need is to supress subfoot line whenever subtotal value is zero. Here is sample code.

TABLE FILE TABLE1
COMPUTE TOTALSALE/D22.2= SALE1+ SALE2;NOPRINT
BY REGION
BY COUNTRY
ON REGION SUBFOOT
"Sale for Region ST.TOTALSALE"
ON COUNTRY SUBFOOT
"Sale for country ST.TOTALSALE"

ON TABLE PCHOLD FORMAT PDF
END

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 4 | Registered: August 29, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
Check out the WHEN command.

Conditionally Displaying Summary Lines and Text


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6105 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Member
posted Hide Post
Thanks Waz... it will work I think..
 
Posts: 4 | Registered: August 29, 2019Reply With QuoteReport This Post
Member
posted Hide Post
Hi Waz,

I had same requirement with more than 12 computation elements which will be shown in subfoot.
In order to the supress subfoot line if the all the 12 values are zero do I need to write WHEN condition for all the field .
Is there any other alternate way to achieve it.
 
Posts: 4 | Registered: August 29, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
You can "write a WHEN condition for all the fields individually"
OR
You can create a COMPUTE which SUMs all fields and use that in your CONDITIONAL / WHEN Statement.
 
Posts: 2987 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
As Doug says, create a COMPUTE to build a flag for when to show/hide the subfoot


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6105 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Member
posted Hide Post
Thanks waz and doug its working..
 
Posts: 4 | Registered: August 29, 2019Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Supress subfoot line if sub total values is zero

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.