Forum Discussion
Anonymous
4 years agoNot applicable
Measure: return the max average(by months)
Hi, I've started with Power BI a week ago. I found that was the perfect tool for what i was asked for. I've been chosen to get the time measures of the processes of my company. The metric chosen ha...
Anonymous
4 years agoNot applicable
Looks like it works. Thank you very much.
smpa01
Community Champion
4 years agoAnonymous while this works, I want to leave you with a more elegant 1 line measure. Pbix is attached.
_top1Average =
CALCULATE (
[average],
KEEPFILTERS ( TOPN ( 1, ALLSELECTED ( Sample_data[Year] ), [average], DESC ) )
)
- Anonymous4 years agoNot applicable
Thank you but this second solution does not work for me. I will try it later when I'll get a bertter understanding of DAX and M.
The error that I get is that there is no column [average].
- smpa014 years ago
Community Champion
Anonymous please refer to the attached pbix
- Anonymous4 years agoNot applicable
Now it works, I didn't know that [average] were a measure. This shows exactly what I'was looking for.
Thanks