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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

conditional formatting of bars

Wanted to make sure I'm not missing something. It doesn't seem like, when using bar charts, I have the option to set conditional formatting on the color of the bars based on the values (75%+ the bar is green, 40-75% bar is yellow, below 40% bar is red) if I put two variables in the x-axis (doing a horizontal bar chart).

 

Am I missing something or does powerbi not have that functionality?

1 ACCEPTED SOLUTION

Ah, I thought it was the simple one. So, unfortunately, conditional formatting isn't available (yet) for stacked charts 😞





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ray_aramburo
Super User
Super User

Not natively (I mean a specific UI for bar conditional formatting) but you can create a measure and use it here:

ray_aramburo_0-1717169734362.png

 

Measure can be written like:

 

Bar_Color = IF([MeasureOfYourValues] < .40, "#FF0000", IF([MeasureOfYourValues] < .75, "#FFFF00", "#008000"))

Edit: I actually remembered you can still write the logic within that FX UI though 🙂

ray_aramburo_1-1717170111906.png

 

If you will use the measure one (I prefer that option as you can change anytime the colors faster), use the Field Value option and select the created measure from the dropdown:

ray_aramburo_2-1717170163995.png

 

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Yea that fx thing isn't there when I add two variables to the stacked columns bar. 

daniel_krantz_4_0-1717170226376.pngdaniel_krantz_4_1-1717170282718.png

 

Ah, I thought it was the simple one. So, unfortunately, conditional formatting isn't available (yet) for stacked charts 😞





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
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!

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.

Top Solution Authors