Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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...
  • Zubair_Muhammad's avatar
    8 years ago

    HI Anonymous

     

    Try this

     

    =
    CALCULATE (
        MAX ( RankOfArea[count] ),
        ALLEXCEPT ( Rankofarea, Rankofarea[Line] )
    )