Focal Point
[CLOSED] Asname for Recap

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

April 05, 2012, 07:43 AM
sladkat
[CLOSED] Asname for Recap
In the below query I am taking a count on distinct cars for countries. Need to take count at subtotal and grand Total as well.
Please find below the query for same

TABLE FILE CAR
SUM
COMPUTE CNT/I3= CNT.CAR; NOPRINT
BY COUNTRY
PRINT
CAR
MODEL
RETAIL_COST
DEALER_COST
BY COUNTRY
ON COUNTRY SUBTOTAL
RECAP SUBCNT/I3 = CNT.CAR;
ON TABLE COLUMN-TOTAL AS 'GRAND TOTAL'
RECAP TOTCNT/I3=CNT.CAR;
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM OFF
END

I am able to get the count at subtotal and grand total level as well but the recap field SUBCNT should be displayed as 'Subtotal Car Count' and TOTCNT should be displayed as 'Total Car Count' on the report.
How do i get this done? Please help.

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


Supriya
WF 7.7.02/8.0
April 05, 2012, 09:40 AM
Prarie
How about this

 TABLE FILE CAR
SUM 
COMPUTE CNT/I3 = CNT.CAR; NOPRINT
 
BY COUNTRY
PRINT
CAR
MODEL
RETAIL_COST
DEALER_COST
BY COUNTRY
ON COUNTRY SUBTOTAL
ON COUNTRY SUBFOOT
" Subtotal Car Count <ST.CNT"
   
ON TABLE COLUMN-TOTAL AS 'GRAND TOTAL'
ON TABLE SUBFOOT 
"Total Car Count <ST.CNT"
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM OFF
END

 

April 05, 2012, 10:51 AM
Mary Watermann
quote:
RECAP TOTCNT/I3=CNT.CAR;


This is a possibility also ... I have used this in the past on other COMPUTE fields.

Try it on the RECAP ...

 
RECAP 'Total Car Count'/I3=CNT.CAR; 
 



WF 7.6.10, Windows, PDF, Excel