Focal Point
Percentage between total and subtotal

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

July 11, 2008, 09:20 AM
Navaneeth
Percentage between total and subtotal
Hi,

In most of the reports, we do display sub-total and grand totals..... But how do we show what is the contribution of one subtotal with respect to the total

e.g

Total for NY is 100
Total for MN is 100
Total for PA is 100

Total for USA is 300

% of NY is 34 %
% of MN is 34 %
% of PA is 34 %


I hope I am clear with my question

Thanks,
Navaneeth
July 11, 2008, 09:24 AM
BlueZone
Navneeth -
Please lookup the " WITHIN " verb. That will show you how to get the grand-total as a column with-in the same Hold file, and use it for calculations like these.

Best regards,
Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
July 14, 2008, 10:07 AM
PBrightwell
You can also use a multiverb such as:
DEFINE FILE CAR
TOT_SLS/D12=SALES;
END
TABLE FILE CAR
SUM TOT_SLS NOPRINT
SUM SALES
COMPUTE PCT_SLS/D5%=SUM.SALES/TOT_SLS * 100;
BY COUNTRY
END


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes