Forum Discussion
michael_knight
5 years agoPost Prodigy
3 Month Average, excluding current month
Hi, I'm trying to create a measure which will give me an average of the previous 3 months, but exclude the current month. For example, for May 2021 I want that to be an average of February 2021, ...
- 5 years ago
michael_knight , sorry, my mistake. Try like
CALCULATE (
AVERAGEX ( VALUES ( 'Date'[Month/Year] ),[Withdrawal %]),
DATESINPERIOD ( 'Date'[Full Date], eomonth ( max('Date'[Full Date]) ,-1), -3, MONTH )
)
amitchandak
5 years agoSuper User
michael_knight , sorry, my mistake. Try like
CALCULATE (
AVERAGEX ( VALUES ( 'Date'[Month/Year] ),[Withdrawal %]),
DATESINPERIOD ( 'Date'[Full Date], eomonth ( max('Date'[Full Date]) ,-1), -3, MONTH )
)
michael_knight
5 years agoPost Prodigy
Legend, thank you amitchandak