Forum Discussion
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.
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_DecklerCommunity 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?
- sdjensenSolution Sage
Color saturation should be able to do what you ask for. Could you elaborate what is not working with color saturation?
- SrikanthBIRegular 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
- sdjensenSolution 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.
- Brian_MContinued Contributor
Hi SrikanthBI, I completely agree and have been looking for this feature. Custom viz development is beyond me at the moment, so I've suggest this idea here:
If you think that would do what you are after, please support the idea!