Forum Discussion
RajS
8 years agoRegular Visitor
Rolling Average by Bi-Weekly Periods
Hi,
I am trying to calculate 6-month (13 bi-weekly periods) rolling average of a count of occurences (based on the date of occurrence, the count is added as a measure for each bi-weekly period).
So, if the count is 20 for Period 1 (say, 01-Jan) and 0 for the next 12 periods, I am hoping to get a rolling average value of 1.54 for the 13th period (20 divided 13) and so on.
Please help!
Thanks,
RajS
2 Replies
- AnonymousNot applicable
RajS,
Could you please share sample data of your table here?
Regards,
Lydia- RajSRegular Visitor
Bi-Weekly Period Number of Occurrence Attribute Value Result required 2014-10-10 5 3625 137.9 2014-10-24 3522.5 0 2014-11-07 3974 0 2014-11-21 3895.5 0 2014-12-05 3755 0 2014-12-19 3971.5 0 2015-01-02 625.5 0 2015-01-16 3861 0 2015-01-30 4000.5 0 2015-02-13 4073.5 0 2015-02-27 4197.5 0 2015-03-13 3795 0 2015-03-27 3871 0 10.6 2015-04-10 3520 0 0.0 2015-04-24 3851 0 0.0 2015-05-08 3697.5 0 0.0 2015-05-22 3026.5 0 0.0 2015-06-05 3 3546 84.6 6.5 2015-06-19 3529.5 0 6.5 2015-07-03 2580 0 6.5 2015-07-17 3218 0 6.5 2015-07-31 3435 0 6.5 2015-08-14 2799.5 0 6.5 2015-08-28 3335 0 6.5 2015-09-11 3056 0 6.5 2015-09-25 1 3614 27.7 8.6 2015-10-09 3454 0 8.6 2015-10-23 3256 0 8.6 2015-11-06 3936.5 0 8.6 2015-11-20 3394 0 8.6 2015-12-04 3518 0 2.1 2015-12-18 3901.5 0 2.1 2016-01-01 996 0 2.1 2016-01-15 3748 0 2.1 2016-01-29 3552 0 2.1 2016-02-12 1 3599 27.8 4.3 2016-02-26 3432 0 4.3