Focal Point
[CLOSED] how to display total as separate column for each record

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

February 04, 2011, 08:06 AM
raghuram
[CLOSED] how to display total as separate column for each record
Hi All,
I have a Table as below

PRODUCT AMOUNT
ASDF 1000

FRGH 2000

MNJI 3000


Total for all Products (ASDF +FRGH +MNJI) is 6000

Now i need to display as below

PRODUCT AMOUNT TOTAL
ASDF 1000 6000

FRGH 2000 6000

MNJI 3000 6000


Could you please suggest us how to reach this requirement.

Thanks,
Raghu

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


WebFOCUS 7.6.7
Windows
Excel, PDF, HTML
February 04, 2011, 08:38 AM
GamP
Something like this perhaps:
TABLE FILE CAR
SUM SALES NOPRINT
SUM SALES
    COMPUTE TOTALSALES/I8 = C1;
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
ON TABLE SUBTOTAL SALES AS 'TOTAL'
END
Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
February 04, 2011, 08:57 AM
atturhari
Or

TABLE FILE CAR
SUM SALES
COMPUTE TOTALSALES/I8 = TOT.SALES;
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
ON TABLE SUBTOTAL SALES AS 'TOTAL'
END


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML