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
Anonymous
Not applicable

In stacked bar chart custom color the bar values

Hi 

I have below chart, and want red to be green when postive value and red when negative value, how it can be achieved. thanks

VijiRGBS_1-1672662050356.png

VijiRGBS_0-1672663112162.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Because you use Legend, the stacked bar chart already distinguishes colors, and if you cancel Legend, you can add dynamic color formulas.

When there's a field in Legend, you can't use conditional formatting.

vstephenmsft_1-1672992398471.png

vstephenmsft_2-1672992406641.png

When there's no field in Legend, you can set up color dynamically which means using conditional formatting.

vstephenmsft_3-1672992443332.pngvstephenmsft_4-1672992455351.png

vstephenmsft_5-1672992488841.png

 

This means that if you use Legend, you can't use conditional formatting. I hope you understand.

As @amitchandak  said, if you want conditional formatting when using Legend, please submit this idea below.

 Ideas (powerbi.com)

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Because you use Legend, the stacked bar chart already distinguishes colors, and if you cancel Legend, you can add dynamic color formulas.

When there's a field in Legend, you can't use conditional formatting.

vstephenmsft_1-1672992398471.png

vstephenmsft_2-1672992406641.png

When there's no field in Legend, you can set up color dynamically which means using conditional formatting.

vstephenmsft_3-1672992443332.pngvstephenmsft_4-1672992455351.png

vstephenmsft_5-1672992488841.png

 

This means that if you use Legend, you can't use conditional formatting. I hope you understand.

As @amitchandak  said, if you want conditional formatting when using Legend, please submit this idea below.

 Ideas (powerbi.com)

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

can you please give more detail on conditional formatting to set color, I am not able to find it. thanks

amitchandak
Super User
Super User

@Anonymous , I stacked visual you can set color for series but can use conditional formatting to set color

 

You can log and Idea -https://ideas.powerbi.com/ideas/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Kudoed Authors