Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Measure Efficiency help: Calculating the average of a measure evaluated in different contexts

$
0
0

 

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?


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>