Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Highlight max value for each row in a matrix

I am trying to create a Power BI matrix and highlight the max value of each row to show the peak hour.  Here is the matrix I made and the related fields: I made a measure to find ...
  • Fowmy's avatar
    4 years ago

    Anonymous 

    I create a measure for the conditional Formatting as follows, modify your table and column names as per your model. I also attached the file below my signature.

    MaxInRow = 
    VAR __MaxUnits = 
    MAXX(
        ALLSELECTED( Data[Month Number] ),
        [Total Units]
    )
    RETURN
    IF( 
        [Total Units] = __MaxUnits,
        "RED"
    )