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
KrishnaKanjani
Regular Visitor

Stacked BarChart

I want to create a measure that shows a stacked bar chart with 'column1', 'column2' and 'column3'. But I also want that, all the values of bars between 4.5 to 5, should be of green color, between 3.5 to 4.5 should be of orange and less than 3.5 should be red (irrespective of legends). The visual should remain stacked bar graph. Is it possible ?
Screenshot (181).png
2 REPLIES 2
Daniel29195
Super User
Super User

continuing my reply .... 

@KrishnaKanjani 

 

if you are not using a legend and using  3 measures where each measure refer to its respective column, then you can use conditional formatting ,

Daniel29195_0-1705917199438.png

choose rules in the first dropdown list , and in the rules , put the rules that you want . then hit ok when done. 

Daniel29195_1-1705917215138.png

 

 

 

If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit thumbs up button 👍

 

Daniel29195
Super User
Super User

@KrishnaKanjani 

when using legend in a visual, you can t use conditional formatting  and change the color base on specific conditions . 

 

 

 

 

 

 

 

 

 

 

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.