Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Solved! Go to Solution.
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.
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!
Color saturation should be able to do what you ask for. Could you elaborate what is not working with color saturation?
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
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.
This soultion may work for BAR, but not with other charts like CARD etc..
Any alternative approach?
Thanks,
How can we chnage color based on a measure in a gauge chart.
For example the target is 99.5%
if it is clsoe to targte it shows greeen else red
Is there I can change color based on a measure value which changes based on the filters selected.
For e,g.
I have a filter Gold, Others
If it is filtered on Gold the measure has a value 98%
It is filtered on Others it has a value 87%
The Gold has a target of 99%
The others has a target of 85%
If the Measure is filtered on gold it should be red as it has not reached it's target.
If the Measure is filterd on others it should be green as it has reached the target of others.
Others have a target of 86%
Currently there is no way to format the column based on a variable/measure value. Conditional formatting will only work for a hard coded value (Min/Max value).
Is this still the case? or has Power BI come up with any updates in the recent releases? I am not able to find anything online!
Thanks, This is now solved
You can write a custom bar chart to handle your color logic. You can start with the histogram chart in the custom visuals repository. Then modify "fill" logic to display colors based on values.
For example, I change the bar color to red. See attachment.
the link does not work
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |