Focal Point
[SOLVED] SUBTOTAL suppression in a specific column

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

May 15, 2014, 01:18 PM
Alex
[SOLVED] SUBTOTAL suppression in a specific column
I need to suppress the total in an accordian report on a specific column. I can fake the system by making the font color tha same as the background color but if I export the report to Excel the total is there. In the sample below I would like to completely suppress by setting a Blank or 0 instead of the Totals that I styled as WHITE.
Has anyone developed a way to suppress a SUBTOTAL without resorting to color changes?

SET EXPANDBYROW = ON
TABLE FILE CAR
SUM 
     CAR.BODY.DEALER_COST 
     CAR.BODY.RETAIL_COST
BY  LOWEST CAR.ORIGIN.COUNTRY
BY  LOWEST CAR.COMP.CAR 
BY  LOWEST CAR.CARREC.MODEL
ON  CAR SUBTOTAL 
ON COUNTRY SUBTOTAL
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE SET EXPANDABLE ON 
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,$
TYPE=SUBTOTAL, BY =2, COLUMN=N4, COLOR='WHITE',$
ENDSTYLE
END  

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


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
May 15, 2014, 01:28 PM
Francis Mariani
Specify the columns you want subtotals for:

ON CAR SUBTOTAL RETAIL_COST



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
May 15, 2014, 01:44 PM
Alex
My problem is not creating the subtotal it is to selectively suppress it say on the RETAIL_COST column by retain it on the DEALER_COST column. The only way I have found to do it is by making the color of the font the same as the background. That's OK for HTML but doesn't work for EXCEL.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
May 15, 2014, 02:01 PM
Francis Mariani
Sorry about that - I thought you could specify the columns to be subtotalled, but it does not work - all columns mentioned in the SUBTOTAL are visible - this is a non-AHTML example - both RETAIL_COST and WEIGHT are subtotalled on all subtotal rows:

TABLE FILE CAR
SUM 
DEALER_COST 
RETAIL_COST
WEIGHT
LENGTH
HEIGHT

BY LOWEST COUNTRY
BY LOWEST CAR 
BY LOWEST MODEL

ON CAR SUBTOTAL RETAIL_COST 
ON COUNTRY SUBTOTAL WEIGHT

ON TABLE SET PAGE-NUM NOLEAD 
-*ON TABLE SET EXPANDABLE ON 
-*ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = ENDEFLT,$
ENDSTYLE
END  



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
May 15, 2014, 05:07 PM
Alex
I solved the problem by converting the numeric field to an alpha field in a DEFINE. Once I did that the SUBTOTAL no longer showed a total.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF