Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Conditional Formatting in table by field value

Hello,   I am not sure if I misunderstood the Microsoft Document (https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting), which says it can be a measure. If it means the te...
  • v-frfei-msft's avatar
    7 years ago

    Hi Anonymous ,

     

    One sample for your reference. Please check the following steps as below.

     

    1. Create a measure as below.

    Measure = 
    VAR a =
        SUM ( 'Table'[value] )
    RETURN
        SWITCH ( TRUE (), a <= 12, "#143DFF", a <= 14, "#FD09DE", "#DE8F12" )
    

    2. Format the visual by thea measure as below.