MOVINGAVERAGE
Syntax
MOVINGAVERAGE(measure, startDate, endDate)Arguments
Return value
Example
MOVINGAVERAGE([Profit], CURRENT_PERIOD, SHIFT(CURRENT_PERIOD, "2M"))
//Calculates the sum of the profit for a particular month and 2 months after it
MOVINGAVERAGE([Sales], DATE(2024,4,1), DATE(2024,8,31))
//Calculates the rolling average between April and August 2024 

Last updated
Was this helpful?