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
Also you can use a ranking technique...i.e. rank the versions for each type and then filter for RANK 1
i.e use this calculated column
RANK =
RANKX (
FILTER ( Table1, Table1[Type] = EARLIER ( Table1[Type] ) ),
Table1[Version],
,
DESC,
DENSE
)Zubair_Muhammad
8 years agoCommunity Champion