Is there a way to show a field in the subtotal line but not the grand total line?
Basically I have a purchase report that is broken down into categories. The field is a percent to total field, so every subtotal would be a percent to total of the grand total. So say category A B and C are all 33.33% the grand total should always be 100%, basically the users don't want to see the 100%. I tried specifiying the fields in the ON TABLE SUBTOTAL line and excluding them from the ON TABLE TOTAL line but it shows on the grand total line anyway.
Eric
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
November 09, 2006, 05:25 PM
.eric
Here is an example using the car file:
TABLE FILE CAR SUM DEALER_COST COMPUTE PCT_COST/D12.2% = DEALER_COST / TOT.DEALER_COST * 100; BY CAR BY MODEL ON TABLE HOLD END
TABLE FILE HOLD PRINT DEALER_COST PCT_COST BY CAR BY MODEL ON CAR SUB-TOTAL DEALER_COST PCT_COST ON TABLE COLUMN-TOTAL DEALER_COST END
So basically I want PCT_COST in the sub-total line and not in the column-total line.
Eric
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
November 10, 2006, 12:01 AM
OPALTOSH
TABLE FILE CAR SUM DEALER_COST COMPUTE PCT_COST/D12.2% = DEALER_COST / TOT.DEALER_COST * 100; BY CAR BY MODEL ON TABLE HOLD END DEFINE FILE HOLD DUMMY/A1=' '; END TABLE FILE HOLD PRINT DEALER_COST PCT_COST BY DUMMY NOPRINT BY CAR BY MODEL ON CAR SUBFOOT "ON DUMMY SUBFOOT "ON TABLE NOTOTAL END
You can then format the Subfoots using a style sheet so that they look like sub totals. You also have more flexibility about what else you might want to display in the subfoot.
November 10, 2006, 09:13 AM
.eric
I still need column totals though, the subtotal line isn't the problem, it's the very last total line (grand totals) where I need to exclude the PCT_COST field.
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
November 10, 2006, 09:20 AM
KevinG
Eric,
Maybe not the ultimate solution, but you could set the "Color" of that item in the StyleSheet to be the same color as the background of your Grand Total line. This will effectively not display that field (although it is really still there.)
Kevin
WF 7.6.10 / WIN-AIX
November 10, 2006, 09:23 AM
Tom Flynn
Eric,
Have you tried:
ON TABLE SUMMARIZE DEALER_COST AS 'Total ' ON TABLE NOTOTAL
ON TABLE SUMMARIZE DEALER_COST AS 'Total ' ON TABLE NOTOTAL
If you look at my code I had the same thing but with RECOMPUTE instead of SUMMARIZE. And it still adds that field into the grand totals line. Also If I add the ON TABLE NOTOTAL it removes the grand total line...
I'm also trying to avoid using subfoots because this particular report has about 15 or so fields and it might get a little messy.
I guess I can use Kevin's idea if there is nothing else.