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
mstone3
Helper III
Helper III

PowerBI Column Chart - Conditional Formatting Problem

Hello, I have a simple PowerBI column chart with a few conditional formatting rules:

If value is greater than 0 and less than 6, format blue

If value is greater than or equal to 6 and less than 10, format orange

If value is 10 or greater, format pink.

 

The result is show below - as you can see I'm getting two different colors for the same exact whole number value.  Values of 1 are both blue and orange.  Values of 6 are both orange and pink.

mstone3_0-1710422600364.png

 

Thanks very much for any assistance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mstone3 ,

First of all, many thanks to for very quick and effective replies, and I will give some additions below:

1.Create the simple table.

vjiewumsft_0-1710753732430.png

2.Create the new measure to filter conditional formatting.

 

conditional format = 
VAR sel = SELECTEDVALUE('Table'[Values])
RETURN
IF(sel > 0 && sel < 6, "blue",
    IF(sel >= 6 && sel < 10, "orange",
        IF(sel >= 10 && sel < 100, "pink")
    ) 
)

 

3.Select the color in the Bars pane.

vjiewumsft_2-1710753853740.png

4.Select the Field value and measure.

vjiewumsft_3-1710753864324.png

5.The result is shown below.

vjiewumsft_4-1710753872711.png

 

Best Regards,

Wisdom Wu

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

5 REPLIES 5
Anonymous
Not applicable

Hi @mstone3 ,

First of all, many thanks to for very quick and effective replies, and I will give some additions below:

1.Create the simple table.

vjiewumsft_0-1710753732430.png

2.Create the new measure to filter conditional formatting.

 

conditional format = 
VAR sel = SELECTEDVALUE('Table'[Values])
RETURN
IF(sel > 0 && sel < 6, "blue",
    IF(sel >= 6 && sel < 10, "orange",
        IF(sel >= 10 && sel < 100, "pink")
    ) 
)

 

3.Select the color in the Bars pane.

vjiewumsft_2-1710753853740.png

4.Select the Field value and measure.

vjiewumsft_3-1710753864324.png

5.The result is shown below.

vjiewumsft_4-1710753872711.png

 

Best Regards,

Wisdom Wu

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

 

Anonymous
Not applicable

@mstone3  What's the complete rule for when the value is 10 or greater?

bchager6_1-1710426940647.png

 

bchager6_0-1710426860162.png

 

 

 




Hello, the complete rule is greater than 10 or less than/equal to 100.  The are no values that would go beyond 100.  Thank you!

Anonymous
Not applicable

@mstone3  Can you share a snag of your conditional formatting pane the way I did above?

 

Wilson_
Super User
Super User

Hi mstone3,

 

Can you please share a sample pbix file? (If you don't know how, please check the pinned thread in the forum.) It would make debugging your issue easier. 🙂




Did I answer your question? 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