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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors