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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Virtual_Ames
Microsoft Employee
Microsoft Employee

Conditional Formatting - how to keep context with slicer?

I am using the new conditional formatting for tables feature - looks great. 

 

And....

 

I want to be able to use this with a slicer, which presents a challenge.

 

In the initial "unfiltered" scenario, I have a table that shows 100 projects.  Using the "Conditional Formatting > Diverging" option - I am able to generate a nice visual that shows which of the 100 projects are "high risk" (now showing red).

 

Perfect so far.

 

However, if I use a slicer to select one project, the conditional formatting ignores the initial context of generating the conditional formatting relative to the other 100 projects.  Instead, when the single project is selected - all conditional formatting fields turn "Red",  The conditional formatting logic is now only applying to the selected project.  Not perfect - as the project is really not "red" relative to the other 99 projects.  

 

Is there any way to set this to retain the intial context (i.e. conditional formatting relative to the initial set of 100 projects), or is there a way to invoke DAX to set the context?

 

Anyone have a solution?

 

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@Virtual_Ames In conditional formatting if instead of using Lowest Value and Highest Value, you use Number to set colours for both Minimum and Maximum, it will work when you filter out one project using slicer.

 

 

View solution in original post

2 REPLIES 2
ankitpatira
Community Champion
Community Champion

@Virtual_Ames In conditional formatting if instead of using Lowest Value and Highest Value, you use Number to set colours for both Minimum and Maximum, it will work when you filter out one project using slicer.

 

 

Thanks - this does this trick. Have a good one.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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