Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Moving average for non-consecutive dates.

I understand that there have been some articles regarding this issue, however, none of them seem to work for me. Would like some help specifically to my situation/data.

 

Basically I have a table with a few columns. Date, country, size. I would like to calculate the 7 day moving average for a country's size
(E.g. Libya's size). However, Libya does not have size data for all the dates, as shown in the picture below. The moving average formula I used, as shown in the other picture, includes the days where Libya does not have data. What formula should I be using if I want the moving average to consist of 7 non-zero days?

Thanks for the help.

 

 

 

9 Replies