Forum Discussion

RajS's avatar
RajS
Regular Visitor
8 years ago

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    RajS,

    Could you please share sample data of your table  here?


    Regards,
    Lydia

    • RajS's avatar
      RajS
      Regular Visitor
      Bi-Weekly PeriodNumber of OccurrenceAttributeValueResult required
      2014-10-1053625137.9 
      2014-10-24 3522.50 
      2014-11-07 39740 
      2014-11-21 3895.50 
      2014-12-05 37550 
      2014-12-19 3971.50 
      2015-01-02 625.50 
      2015-01-16 38610 
      2015-01-30 4000.50 
      2015-02-13 4073.50 
      2015-02-27 4197.50 
      2015-03-13 37950 
      2015-03-27 3871010.6
      2015-04-10 352000.0
      2015-04-24 385100.0
      2015-05-08 3697.500.0
      2015-05-22 3026.500.0
      2015-06-053354684.66.5
      2015-06-19 3529.506.5
      2015-07-03 258006.5
      2015-07-17 321806.5
      2015-07-31 343506.5
      2015-08-14 2799.506.5
      2015-08-28 333506.5
      2015-09-11 305606.5
      2015-09-251361427.78.6
      2015-10-09 345408.6
      2015-10-23 325608.6
      2015-11-06 3936.508.6
      2015-11-20 339408.6
      2015-12-04 351802.1
      2015-12-18 3901.502.1
      2016-01-01 99602.1
      2016-01-15 374802.1
      2016-01-29 355202.1
      2016-02-121359927.84.3
      2016-02-26 343204.3