Forum Discussion
How to apply conditional formatting on data level in clustered bar chart ?
Hello Team,
I'm encountering an issue where I've utilized a clustered bar chart to represent some data. I need assistance with a specific requirement: for negative values in the chart, I want the bars to be displayed in red color. Can someone provide guidance on how to achieve this? Your help would be greatly appreciated. I have included a visual representation for reference.
- Anonymous2 years ago
Hi jay3vedi ,
According to your description and the example screenshot provided, you are using a clustered bar chart. And in this example screenshot you have categorized these. As you can see on the chart, the negative numbers are in the same category, and if you want to change the color, go to -> Format ->Bars->Appply setting to targrt type->Change color to redBut from your description then you are trying to turn all the negative bars red. This is not possible because your category determines the color of your series of bars. But you can achieve the effect you want by changing the color of the data lable. First create a measure, then go to Format -> Data labels ->value ->apply measure to conditional formatting
Fianl output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
3 Replies
- Uzi2019
Community Champion
Hi jay3vedi
Refer this video belowhttps://www.youtube.com/watch?v=MItQGef79Lc
I hope this resolves your issue!
- AnonymousNot applicable
Hi jay3vedi ,
According to your description and the example screenshot provided, you are using a clustered bar chart. And in this example screenshot you have categorized these. As you can see on the chart, the negative numbers are in the same category, and if you want to change the color, go to -> Format ->Bars->Appply setting to targrt type->Change color to redBut from your description then you are trying to turn all the negative bars red. This is not possible because your category determines the color of your series of bars. But you can achieve the effect you want by changing the color of the data lable. First create a measure, then go to Format -> Data labels ->value ->apply measure to conditional formatting
Fianl output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly