s0224317
Technical User
- Aug 1, 2007
- 3
I have a table with the following 3 fields: Item#, Date (year-Month), Units sold
For each item there are 24 months of data. I need to find the first data in the data set where the value is greater than 0 & calculate the standard deviation for the range consisting of that month plus the subsequent 11 months.
Example:
Item Date Value
001 2006-11 0
001 2006-12 0
001 2007-01 3
001 2007-02 0
001 2007-03 6
001 2007-04 2
so for this data set I need a code that will find 2007-01 which has value greater than 0 & begin calculating standard deviation for the subsequent 11 months (1+11= 12 total months)
Each item will potnetially have a different month as starting point.
I hope this is clear. Please let me know if any furhter clarifications are needed
For each item there are 24 months of data. I need to find the first data in the data set where the value is greater than 0 & calculate the standard deviation for the range consisting of that month plus the subsequent 11 months.
Example:
Item Date Value
001 2006-11 0
001 2006-12 0
001 2007-01 3
001 2007-02 0
001 2007-03 6
001 2007-04 2
so for this data set I need a code that will find 2007-01 which has value greater than 0 & begin calculating standard deviation for the subsequent 11 months (1+11= 12 total months)
Each item will potnetially have a different month as starting point.
I hope this is clear. Please let me know if any furhter clarifications are needed