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
HI Anonymous
Here is a wonderful article on ALL functions.
Anonymous
8 years agoNot applicable
So the line:
ALLEXCEPT( RankOfArea, RankOfArea[Line] )
creates a reference to a different table on each row? And that table is RankOfArea, filtered by whatever is in current row of the [Line] column?