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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
damilolaA
Regular Visitor

Conditional Formatting in Bar Chart

Hello, 

I am trying to conditionally format a bar using field values. For testing, I'm using simple measures: PH = 5 and color = "BLACK"

When I go to bars > Color > fx > field value and select the color measure, the color of the bar doesn't change. Using format style 'Rules' doesn't format the bar either. However, I am able to conditionally format the background of the bar chart using both the field value measure and Rules. This is occuring in Power BI Desktop and Service. I have tried on both August 2024 and September 2024 Power BI Desktop versions and I'm getting the same result. I believe this wasn't an issue in the past. Perhaps I'm missing something. I'd appreciate any assistance. Thank you. 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

cannot reproduce?

 

lbendlin_0-1727567660715.png

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

cannot reproduce?

 

lbendlin_0-1727567660715.png

 

Thanks for responding! Looks like I needed to have a y-axis. It's all good now. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.