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

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

Reply
AnjanaTh
Frequent Visitor

Color Conditional formatting of legends in a stack bar chart visual in Power BI

I am using account names column in legend section of my stacked column chart .I want to color conditional formatting of the account names based

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @AnjanaTh 

In Power BI, you can apply conditional formatting to various elements of your visuals, including data columns in stacked column charts. The color of each legend is determined according to the theme, if you need to change the color of the legend, you need to select the legend and select the color manually.

You can check the following link:

Conditional Formatting In Power Bi Stacked Column Chart (enjoysharepoint.com)

 

Solved: conditional color Stack column chart - Microsoft Fabric Community

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @AnjanaTh 

In Power BI, you can apply conditional formatting to various elements of your visuals, including data columns in stacked column charts. The color of each legend is determined according to the theme, if you need to change the color of the legend, you need to select the legend and select the color manually.

You can check the following link:

Conditional Formatting In Power Bi Stacked Column Chart (enjoysharepoint.com)

 

Solved: conditional color Stack column chart - Microsoft Fabric Community

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ritaf1983
Super User
Super User

Hi @AnjanaTh 
If I understand correctly, you're referring to conditional formatting of column segments. In this type of chart, conditional formatting is not available.

There is an idea about this issue you can vote for it by the link :
https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=b03d0ec4-062c-ec11-b76a-281878de77da

If it is something else, please 

share a pbix or some dummy data that keeps the raw data structure with expected results. It should help us clarify your scenario and test the coding formula.

How to Get Your Question Answered Quickly  

 

 If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors