Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

DAX - Retrieve a value in one column based on MAX in another column

Hi,    First post and I actually got problems even formulating the subject.  Anyway - this is what I want to achieve, and apparently my skills are not sufficient to figure out the solution.    I...
  • AlB's avatar
    7 years ago

    Hi Anonymous

     

    Try this, where Table1 is the name of your table:

     

    1. Set Table1[ID] in the rows of a matrix visual

    2. Place this measure in values of the matrix:

     

    ValMaxSequence =
    CALCULATE (
        VALUES ( Table1[Value] ),
        FILTER ( ALL ( Table1[Sequence] ), Table1[Sequence] = MAX ( Table1[Sequence] ) )
    )