MOVINGAVERAGE
The MOVINGAVERAGE formula returns the average of a measure over a specified date range.
Syntax
Arguments
measure– The measure to sum. Required.
startDate – Start date of the range. Required.
endDate- End date of the range. Required.
Return value
Returns the average of the measure over the specified date range.
Example
We've used MOVINGAVERAGE to calculate the rolling average of the profit measure for each month and 2 months after that month. For example, the MOVINGAVERAGE for January would be the average of the profits for January, February, and March.
You can also use MOVINGAVERAGE with forecasts to aggregate your measures over open and closed periods. In this example, we've aggregated the forecast measure for the open periods.
Last updated
Was this helpful?