Forum Discussion
Kebas_Leech
Helper I
3 years agoSummarize with ALL
Hello everyone, I have the following function: YEAR | MAX =
VAR vals =
SUMMARIZE(
'Date' ,
'Date'[Year],
"myMeasure", C...
- 3 years ago
Solution was:
VAR MaxValue = calculate([Prod | Max | AllY], ALL('Date'[Year])) RETURN CALCULATE( MAX('Date'[Year]), FILTER( ALL('Date'[Year]), [Prod | Max | AllY] = MaxValue ) )
Kebas_Leech
Helper I
3 years agoSolution was:
VAR MaxValue = calculate([Prod | Max | AllY], ALL('Date'[Year]))
RETURN
CALCULATE(
MAX('Date'[Year]),
FILTER(
ALL('Date'[Year]),
[Prod | Max | AllY] = MaxValue
)
)