04-24-2014 01:15 AM
If all of your data is related to a real date and can be reported in calendar month/days etc you can use the standard YearToDate function
First created a cross table with the month and dayOfMonth related to the transaction Date. (Just an example)
Then go to the Kg field in the data tab and right click the mouse for the options to select Create and YearToDate Using Date. (The transaction date)
Just drag in the new variable and thats it.
This is from SAS VA 6.3, but I am sure its must be almost the same.
Greetings and good luck.
04-25-2014 08:31 AM
Than it works the same way, but only you have to define a copied item of the Date to Month format.
Sadly I see that if you put year in front of the month, the calculations reset for every year. (I have no idea how to solve this within VA)
So I have no direct solution for the cumulation over the years. (Maybe someone else has a good idea how to solve this)
Anyway good luck.