[SOLVED] Supress subfoot line if sub total values is zero
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 ENDThis message has been edited. Last edited by: FP Mod Chuck,
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.
September 16, 2019, 01:26 PM
Doug
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.
September 16, 2019, 03:18 PM
Waz
As Doug says, create a COMPUTE to build a flag for when to show/hide the subfoot