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

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

Reply
Anonymous
Not applicable

Conditional formatting on a stacked bar chart with 2 measures

Hi there, 

 

Can anyone help me with creating a bar chart with conditional formatting? I have it as a 100% stacked bar chart visual (client requirement) but as soon as I put the second measure on, conditional formatting disappears. The second measure is equal to 1 - the first measure and gives me the grey bar.

Capture.JPG

 

 

It may be that there is a different solution to this which could help me. My only thoughts to date is to overlay one visual with another (the latter being the 100% grey bar), but I'd prefer a simpler solution as this has to roll out to a lot of visuals.

 

I have a feeling I've missed something obvious.... Smiley Happy

 

Thanks!

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

I'm still a little confused about your sceanrio.

It seems that there is no conditional formatting for 100% stacked bar chart.

I will need more details to know your scenario.

If it is convenient, could you share your dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

Best Regards,

Cherry

 

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-piga-msft 

 

Please see link below. Top bar chart has two measures, middle one has one measure. When you add a second measure to the middle one, the conditional formatting disappears (on formatting/data colours/) 

 

Needless to say the middle bar chart is not useful - I want the top one with conditional formatting! 

 

My solution is the bottom one, but that requires two visuals overlaid.

https://oxfordpowerbi-my.sharepoint.com/:u:/g/personal/angus_oxfordpowerbi_co_uk/EWCrT6J1dTVNjgi8h2p...

 

 

Anonymous
Not applicable

Hi @v-piga-msft 

 

I was wondering if you'd had any further thoughts on this? Is my solution of two overlaid bar charts the only possible approach?

 

Thanks!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.