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
lahani04
Frequent Visitor

Conditional Background Color Not Working Properly After Applying Slicer in Power BI

Hi everyone,

I’m using conditional formatting to set the background color of a column based on a condition in Power BI Desktop. It works perfectly when no slicer is applied.

However, when I apply a slicer or filter for certain groups, the background color doesn’t display correctly for some rows.

Has anyone faced this issue? Is there a way to make the conditional formatting work properly even after applying slicers or filters?

Any guidance would be appreciated!
Condition:

lahani04_0-1756711735593.png
Not Working properlly with Filter:

lahani04_1-1756711762179.png
Without filter:

lahani04_2-1756711804791.png

 

 

1 ACCEPTED SOLUTION
v-nmadadi-msft
Community Support
Community Support

Hi @lahani04 ,
Thanks for reaching out to the Microsoft fabric community forum.

Generally Conditional formatting should respect Slicer/filter settings. Please try this and re check the functionality, If the field the formatting is based on contains percentages, write the numbers in the rules as decimals, which are the actual values; for example, ".25" instead of "25". Also, select Number instead of Percent for the number format. For example, "If value is greater than or equal to 0 Number and is less than .25 Number" returns values less than 25%. When you select Percent in conditional format dropdown, you’re setting the rule boundaries as a percent of the overall range of values from minimum to maximum. So, it's actually mean Percentile.
Source: Apply Conditional Table Formatting in Power BI - Power BI | Microsoft Learn

vnmadadimsft_0-1756826632923.png



I hope this information helps. Please do let us know if you have any further queries.
Thank you

View solution in original post

5 REPLIES 5
v-nmadadi-msft
Community Support
Community Support

Hi @lahani04 

As we haven’t heard back from you, we wanted to kindly follow up to check if the suggestions  provided by the community members for the issue worked. Please feel free to contact us if you have any further questions.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @lahani04 

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

v-nmadadi-msft
Community Support
Community Support

Hi @lahani04 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @lahani04 ,
Thanks for reaching out to the Microsoft fabric community forum.

Generally Conditional formatting should respect Slicer/filter settings. Please try this and re check the functionality, If the field the formatting is based on contains percentages, write the numbers in the rules as decimals, which are the actual values; for example, ".25" instead of "25". Also, select Number instead of Percent for the number format. For example, "If value is greater than or equal to 0 Number and is less than .25 Number" returns values less than 25%. When you select Percent in conditional format dropdown, you’re setting the rule boundaries as a percent of the overall range of values from minimum to maximum. So, it's actually mean Percentile.
Source: Apply Conditional Table Formatting in Power BI - Power BI | Microsoft Learn

vnmadadimsft_0-1756826632923.png



I hope this information helps. Please do let us know if you have any further queries.
Thank you

Shahid12523
Community Champion
Community Champion

Issue happens because slicers change context → your rules break on blanks or recalculated values.

Fix:

Use the same SLA % measure for formatting (not a column).

Handle blanks with IF(ISBLANK([SLA %]), -1, [SLA %]).

Best fix → create a color measure returning hex codes, then use Field value in conditional formatting.

Shahed Shaikh

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.