Focal Point
Creating a YTD Report

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

February 19, 2007, 10:36 AM
Wilky
Creating a YTD Report
I am trying to figure out how to get a report to be a a running ytd report for each month.

Data:

year: Month: value:
2007 01 05
2007 02 05
2007 03 05
2007 04 05
2007 05 05
2007 06 05
2007 07 05
2007 08 05
2007 09 05
2007 10 05
2007 11 05
2007 12 05

So my Report would be look this

Year: Month: Running Total:
2007 01 05
2007 02 10
2007 03 15
2007 04 20
2007 05 25
2007 06 30
2007 07 35
2007 08 40
2007 09 45
2007 10 50
2007 11 55
2007 12 60


Month 01 = Month 01
Month 02 = Month 01 + Month 02
Month 03 = Month 01 + Month 02 + Month 03
Month 04 = Month 01 + Month 02 + Month 03 + Month 04
Month 05 = Month 01 + Month 02 + Month 03 + Month 04 + Month 05
Month 06 = Month 01 + Month 02 + Month 03 + Month 04 + Month 05 + Month 06

Etc....


PROD: WF 7.1.3 on Win 2003/IIS 6/Self-Serve & MRE
TEST: We dont need no Stinking Test Server!
February 19, 2007, 10:58 AM
JimRice
Try this:

TABLE FILE YOURFILE
SUM VALUE
COMPUTE C_VALUE/I5SC = VALUE + LAST C_VALUE;
BY YEAR
BY MONTH
ON TABLE COLUMN-TOTAL VALUE
END

Jim


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
February 28, 2007, 03:06 AM
kalyanswarna
Create on Temp Variable

DEFINE FILE FILENAME
NEWFIELD/D12 = IF YEAR EQ2007 AND MONTHE LE 10 THEN ACTUALFIELD ELSE 0;
END
Use Actual field as your field and u can use Ampervariables instead of Static Year and Month.

Thanks,
Kalyan


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------