Forum Discussion
Conditional formatting - Change of chart color based on the value of the measure
- 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.
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
- sdjensen10 years ago
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.
- SrikanthBI10 years agoRegular Visitor
Thanks, This is now solved
- premjitsaha9 years agoFrequent Visitor
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
- premjitsaha9 years agoFrequent Visitor
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%
- Anonymous9 years agoNot applicable
This soultion may work for BAR, but not with other charts like CARD etc..
Any alternative approach?
Thanks,
- dnprock10 years agoFrequent Visitor
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.
- premjitsaha9 years agoFrequent Visitor
the link does not work