Focal Point
[SOLVED] Percent change month to month

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

July 23, 2010, 01:53 PM
Norb Eckert
[SOLVED] Percent change month to month
Does anyone know how to do a percent change column from month to month when doing an ACROSS? I don't know how many months I'll have so I'm not sure what is contained in which column. WebFocus figures that out based on the month/year start and end in the WHERE statement.

Thanks,

Norb

This message has been edited. Last edited by: Norb Eckert,


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
July 24, 2010, 04:17 AM
Dan Satchell
Here's an example using the CAR file. Your report would of course use ACROSS MONTH instead of ACROSS COUNTRY.

TABLE FILE CAR
 SUM SALES/D8
 COMPUTE DIFF/D8.2% = (SALES - LAST SALES) / LAST SALES * 100 ;
 ACROSS COUNTRY
END



WebFOCUS 7.7.05
August 02, 2010, 11:26 AM
Norb Eckert
Thanks Dan,

I wasn't aware of using the LAST command in that context. This will work for some of the things I'm doing. I'm setting up a highly parametrized report so I'm gonna experiment with this on dynamic column output.

Norb


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
August 07, 2010, 07:13 PM
Doug
Good One That's a nice use of LAST Dan...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206