Forum Discussion

JChouris's avatar
JChouris
Icon for Helper I rankHelper I
4 years ago
Solved

Color Coding Specific data in a Matrix.

I have a matrix and need certain things to come with a color background. I am fairly new to BI and conditional formatting is not my strong suit. Any help would be greatly appreciated. Example. ESC sh...
  • v-yanjiang-msft's avatar
    4 years ago

    Hi JChouris ,

    According to your description, here's my solution, create a measure.

    Color =
    SWITCH ( MAX ( 'Table'[Resets] ), "ESC", "Gray", "ACC", "Blue" )
    

    In the visual formatting pane>Visual>Cell elements, turn on the Backgroud color option, and select fx button.

    Select the color measure in the field.

    Ge the correct result.

    More information about conditional formatting, you can refer to this documnet: 

    Apply conditional table formatting in Power BI - Power BI | Microsoft Docs

     

    I attach my sample below for your reference.

     

    Best Regards,
    Community Support Team _ kalyj

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