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
IG2023
Frequent Visitor

Conditional Formatting for Bars/Columns for Stacked/Clustered bar/column charts

Hello All, I am writing to see if any of you has a solution for a PowerBI random behaviour. I created calculated measures in my data model, I want to display them on a bar/column chart (stacked or clustered) and assign a colour depending on their value (conditional formatting). The conditional formatting for the bars/columns seems to be available only in one case, if there is only one calculated measure in the X-axis and one non-calculated value in the Y-axis (first pic). If I add two calculated measures in the X-axis (keeping the non-calculated value in the Y-axis, second pic) or if I remove the calculated value altogether from the Y-axis (third pic), the conditional formatting for the bars/columns disappears. I don't understand why, any idea how to work around this? I would like to display the calculated measures in one bar or column chart and be able to use conditional formatting for all of bars/columns. I am using PowerBI desktop, December 2022 version. 

 

IG2023_0-1687301952404.png

IG2023_1-1687302011170.png

IG2023_2-1687302036902.png

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @IG2023 

 

Unfortunately this is how it works.  You can only use CF if there's 1 value on the x-axis.  

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
IG2023
Frequent Visitor

Thanks for your reply! Conditional formatting for multiple values in x-axis would be a very nice feature to have in next PowerBI versions..

PhilipTreacy
Super User
Super User

Hi @IG2023 

 

Unfortunately this is how it works.  You can only use CF if there's 1 value on the x-axis.  

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.