Focal Point
How to suppress SUBTOTAL by a sort field

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2171041782

June 09, 2008, 10:44 AM
Pku
How to suppress SUBTOTAL by a sort field
Hi All,

I am working on a report which has the output as following:



























































.....


My problem is that I can not suppress the lines of the subtotal that are automatically added at the end of each county as page break (the lines indicate by the line "NEED TO SUPPRESS THIS LINE"). Any help would be appreciated.

Here is my code:
...
SUM                                          
HISPANIC_Y AS 'HISPANIC,   Y   '             
HISPANIC_N AS 'HISPANIC,   N   '             
HISPANIC_U AS 'HISPANIC,   U   '             
TOTALIT  AS 'TOTAL BY,RACE CODE'  

BY CO_CNTY_CDE PAGE-BREAK NOPRINT 
ON CO_CNTY_CDE SUBTOTAL AS 'NEED TO SUPPRESS THIS LINE' SUP-PRINT
                                          
BY CO_SUBPRGM_CDE NOPRINT  
BY SORTIT NOPRINT                       
BY CO_RACE_CDE NOPRINT 

                      
BY TX_RACE_DESC AS 'RACE'                   
BY CO_RACE_CDE AS 'CODE'  
 

ON CO_SUBPRGM_CDE SUBTOTAL AS 'TOTAL BY HISPANIC CODE FOR'
ON CO_SUBPRGM_CDE SUBHEAD
"<1 <PROG_SUB"
ON TABLE NOTOTAL
...


Thanks,
Pku

This message has been edited. Last edited by: Pku,


Thanks,
Pku

Focus, WebFocus 8201 on Windows
June 09, 2008, 10:53 AM
Tony A
quote:
"<1 ON TABLE NOTOTAL

Don't know what you are doing here but the syntax is wrong. The code should be ON TABLE NOTOTAL in a line on it's own.

Easiest method is to remove this line -
ON CO_CNTY_CDE SUBTOTAL AS 'NEED TO SUPPRESS THIS LINE' SUP-PRINT


Also check out the use of SUB-TOTAL and SUBTOTAL

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 09, 2008, 01:46 PM
Pku
Thanks, Tony. I got it.


Thanks,
Pku

Focus, WebFocus 8201 on Windows