Forum Discussion

PS_78's avatar
PS_78
Icon for Helper II rankHelper II
2 years ago
Solved

Conditional Formatting for a field in Column based on it's value in Matrix Visual

Hello Team - I have a matrix visual in my report with "Year and Period" on Rows, "Close Days" in Columns and "Count" on Values. I would like to do a background color for a column based on "Close Days...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi PS_78 ,

    I create a table as you mentioned.

    Then I use the matrix visual.

    I think you can create a measure and here is the DAX code.

    Measure = IF(MAX('Table'[Number])>43,"Red",BLANK())

    Then you can use Conditional formatting.

    Finally you can get the Background color. While Power BI does not directly support adding lines within a matrix to differentiate values.

     

     

     

    Best Regards

    Yilong Zhou

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.