Forum Discussion
Anonymous
8 years agoNot applicable
DAX Max value from another column based on row value
I'm trying to write a DAX function to find the maximum value in one column based on a condition in another, but have this condition change dynamically based on the row value. With this code...
- 8 years ago
HI Anonymous
Try this
= CALCULATE ( MAX ( RankOfArea[count] ), ALLEXCEPT ( Rankofarea, Rankofarea[Line] ) )
Zubair_Muhammad
8 years agoCommunity Champion
You can use this calculated column
Assuming your TableName is Table1
MAx_Column =
IF (
Table1[Version]
= CALCULATE ( MAX ( Table1[Version] ), ALLEXCEPT ( Table1, Table1[Type] ) ),
"X"
)ara0530
8 months agoAdvocate I
what if X was a numeric value and I want to filter those that are not zero? This is not working on that scenario