Hey All,
I'm trying to calculate the average value of a measure [Net Reserve] over the past three months.
The below code works but is cumbersome, and would not scale well to formulas that involve more variables/bigger time periods.
Average Net Reserve (3mo) = CALCULATE(
CALCULATE([Net Reserve],PREVIOUSMONTH(Reserve[Month]))+
CALCULATE([Net Reserve],PREVIOUSMONTH(PREVIOUSMONTH(Reserve[Month])))+
CALCULATE([Net Reserve],PREVIOUSMONTH(PREVIOUSMONTH(PREVIOUSMONTH(Reserve[Month]))))
)/3)
Any help to optimize this type of calcualtion?