Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Data Color Formatting not working properly

I have set up conditional color formatting for a series of charts in my BI dashboard. The rules I developed are:

jmb1960_1-1642195385689.png

 

In the hierarchy of charts the formatting seems to work for all data points except for a random one as shown in the bar chart below: 

jmb1960_2-1642195469946.png

I do not understand why that one value is not colored red instead of yellow as shown. All values below 60% should be colored red. Any help to resolve this issue would be appreciated. 

 

Thanks!

 

7 REPLIES 7
Anonymous
Not applicable

Hi @Anonymous 

What field is the color coding based on and what is the field used to display % on chart?

They both should be the same field.

Anonymous
Not applicable

The field I am using for color coding is % labor efficiency. It is the same field. It is a calculated value based on other data in the reports feeding the dashboard. 

Hi @Anonymous ,


To understand the problem more deeply,it would be best to provide a pbix-file containing the sample data.

You can also try to create measure and use conditional formatting field value :

Color = Switch(true(),
[value_measure] <=2.2&& [value_measure]>=0.9  ,"green",
[[value_measure] <0.9&& [value_measure]>=0.6  ,"yellow",
[value_measure] <0.6&& [value_measure]>=0  ,"red")


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I am still experiencing where one random bar is not being formatted with the correct color. I did make sure my formatting was as was suggested above. Here is a screenshot from this morning:

 

jmb1960_0-1642683554679.png

 The circled value should be colored red and not yellow. 

 

 

Please provide a sample pbix after deleting sensitive data to let us know your scenario better.https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-... 

Anonymous
Not applicable

I did make the change you suggested and there was no change. That one specific bar didn't change color. Anything other suggestions for what I should try next? 

Anonymous
Not applicable

HI @Anonymous ,
Try the below 

pranit828_1-1642196431848.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors