Forum Discussion

info_algoritmia's avatar
2 years ago
Solved

Return highest value from a visual table

Hey there,   I need a measure that returns the highest value from the current visual table, take a look at the screenshot below     I have date and total sales in columns, I need the measu...
  • parry2k's avatar
    2 years ago

    info_algoritmia I see, try this:

     

    SWITCH ( TRUE (),
      ISINSCOPE ( DateTable[Date], MAXX ( ALLSELECTED ( DateTable[Date] ), [Sales] ),
      ISINSCOPE ( DateTable[Month], MAXX ( ALLSELECTED ( DateTable[Month] ), [Sales] ),
      <<else condition>>
    )