I have time series data (published analytics) for which I’d like to add a column of the moving average with a formula. For example:
Date, Views, Sessions
I’d like to create charts that show a 7 day average of view/sessions, so to do so i was going to add a column that is an average of the last week 7 days of views.
Struggling to figure out what the formula for this column should be.
Hey Chris–this is pretty good and will be sufficient for my needs. Really appreciate the help.
However one thing is that this appears to take a mid-point type moving average rather than a trailing MA. (In trailing MA the current row + the dates directly preceding are averaged.)
Hard to say, but maybe this is due to the oldest date being on the top rather than the reverse.
The end result is effectively the same on a long enough timeline, just that the observed average will be ahead or behind a few rows depending on the number of days selected.