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
TineM
Regular Visitor

Bar chart conditional formatting without fx

Hi Experts,
I would like to compare two weights, left target weight and right actual weight.
I would like to show the bar red if the actual weight is higher than the target. The fx button is not available what other option do I have to color it? I'm flexible with the chart design.
Thanks

TineM_0-1737549934583.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @TineM 

 

You will need to create two separate measures that return a value based on whether the actual is greater than or equal to the target, or otherwise. Use these measures in your visual, as conditional formatting on bar or column charts with a legend value is currently not supported.

 

Note:  I used the native bar chart in the screenshot below which doesn't seem to look like th one in your screenshot

danextian_0-1737551739567.png

Please see the attached sample pbix.

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @TineM 

 

You will need to create two separate measures that return a value based on whether the actual is greater than or equal to the target, or otherwise. Use these measures in your visual, as conditional formatting on bar or column charts with a legend value is currently not supported.

 

Note:  I used the native bar chart in the screenshot below which doesn't seem to look like th one in your screenshot

danextian_0-1737551739567.png

Please see the attached sample pbix.

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks @danextian ,
it works 🙂

 

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.