Forum Discussion
MPetramalo214
Helper I
4 years agoCreating a Measure to Get Max Value of a Measure
Hi everyone, I am trying to reference a line charts maximum value in a second measure for a different visual. Is my line chart, the x-axis is date, and the y-axis is a measure that calcul...
- 4 years ago
In that case try this:
Max Actual Occupancy =
CALCULATE (
MAXX(
DISTINCT('Calendar'[Date]),
[Actual Occupancy]),
ALLSELECTED ('Calendar'))
MPetramalo214
Helper I
4 years agoVery cool! Works perfectly as intended - I was also able to accomplish this with another measure
var __table = SUMMARIZE('Calendar','Calendar'[Date], "_-value", _Measures[Actual Occupancy])
return MAXX(__table, [_-value])but your solution works in the exact format I needed it to!
Thanks again!
ALLUREAN
Solution Sage
4 years agoI remeber that use can use also analytics tab in line chart options to set max sales line.