Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Conditional Formatting not behaving as expected

Hi All,   I have set up conditional formatting on a Matrix table with 4 levels of rows, values has 2, revenue and the % of that revenue against the Row total...    Now I put the conditional forma...
  • v-xuding-msft's avatar
    v-xuding-msft
    6 years ago

    Hi Anonymous ,

    I create a simple sample that you could have a try. And you can use any of the values listed in the CSS color spec at https://www.w3.org/TR/css-color-3/ to color your visuals. In my sample, I use text to color it.  Please view the sample below.

    Conditional formatting = 
    SWITCH (
        TRUE (),
        'Table'[%] <= 0.05, "Red",
        'Table'[%] <= 0.1, "Yellow",
        "Green"
    )

    Best Regards,

    Xue Ding

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