[SOLVED] Sub total and average in the same footing
OK there, I'm having a bit of brain freeze here.
So, how do I display the total dealer_cost and retail_cost and the average of the, totally bogus, sales in the sale line (subfoot, subtotal, recompute, whatever) for this report? The average sales should be 19052.
SET PAGE = NOLEAD
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST
COMPUTE SALES/D12C=RCOST * 1.1 ;
BY COUNTRY BY CAR
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS CARFILE
END
TABLE FILE CARFILE
SUM DEALER_COST SALES RETAIL_COST BY COUNTRY BY CAR
ON TABLE SUBFOOT
"AVERAGE SALES: <ST.AVE.SALES"
ON TABLE SUBTOTAL
END
Thanks in Advance, Doug
PS: This is in 8105.This message has been edited. Last edited by: Tamra,
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
January 30, 2017, 02:51 PM
Danny-SRL
Doug,
Thaw:
-* File doug02.fex
SET PAGE = NOLEAD
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST
COMPUTE SALES/D12C=RCOST * 1.1 ;
BY COUNTRY BY CAR
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS CARFILE
END
TABLE FILE CARFILE
SUM DEALER_COST RETAIL_COST SALES
BY COUNTRY BY CAR
ON TABLE SUBTOTAL DEALER_COST RETAIL_COST AVE. SALES
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
January 30, 2017, 03:51 PM
Doug
That's a mazing Danny,
What's with the space between "AVE." and "SALES"? It works with that spaced out! Yea!
BTW: I need this to work with a lengthy / left justified heading and table footing for HTML, PDF, and Excel AND breaking on, in this case, COUNTRY. I'm working with that now to see if it works.