Forum Discussion

SrikanthBI's avatar
SrikanthBI
Regular Visitor
10 years ago
Solved

Conditional formatting - Change of chart color based on the value of the measure

Hi,

 

Being a new comer to Power BI, struggling to understand all the features provided currently. Is there a feature for conditional formatting for the bar chart shows different colors based on a target value (If less , shows different color and if more , another color)

 

I have tried color saturation feature and it doesnt give me exactly what i m looking for? Can any one advise?

 

Kind Regards.

 

  • sdjensen's avatar
    sdjensen
    10 years ago

    If you just want your bar to be colored green if you value is above 100 and otherwise red then this is very possible with Color saturation.

     

    Put the same measure as you have in your Value into the Color saturation.

    Then go to the format tab and under Data colors set minimum and maximum to 100 and change the colors to red and green.

     

    That should do it.

     

13 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    They just added conditional formatting for tables, but I am not aware of that feature for column chart visualizations. You might consider adding a Reference Line in the formatting options, perhaps that is a different visual cue to sort of get what you want?

  • Color saturation should be able to do what you ask for. Could you elaborate what is not working with color saturation?

     

     

    • SrikanthBI's avatar
      SrikanthBI
      Regular Visitor

      Hi,

       

      I have a requirement to show the bar color chart (individual bar) to show green if it is above certain value

      For eg: if total value is >100, bar should show green , or red otherwise.

       

      Can you pls advise if this is possible to address this as a workaround via Color formatting as I have tried basic options and didnt give me what I m looking for?

       

      Pls advise.

       

      Thanks, Srikanth

      • sdjensen's avatar
        sdjensen
        Solution Sage

        If you just want your bar to be colored green if you value is above 100 and otherwise red then this is very possible with Color saturation.

         

        Put the same measure as you have in your Value into the Color saturation.

        Then go to the format tab and under Data colors set minimum and maximum to 100 and change the colors to red and green.

         

        That should do it.