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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Conditional Formatting using slicer values

Hi All,

 

Let's say I have the following data in a table visual:

 

Month Reported

January

January

December

November

November

November

October

 

And I have a slicer: Reporting Month and the user selected "January". How do I format my table to highlight the rows that is equal to what is selected in the slicer? e.g. January.

 

Thanks

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a new table:

New = VALUES(Table1[Month Reported])

1.PNG

Use this column as slicer.

Create a new measure:

Measure = IF(MAX('Table1'[Month Reported])=SELECTEDVALUE(New[Month Reported]),"#FD625E")

Set conditional formatting:

1.PNG

Now you could get the result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
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

3 REPLIES 3
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a new table:

New = VALUES(Table1[Month Reported])

1.PNG

Use this column as slicer.

Create a new measure:

Measure = IF(MAX('Table1'[Month Reported])=SELECTEDVALUE(New[Month Reported]),"#FD625E")

Set conditional formatting:

1.PNG

Now you could get the result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-danhe-msft,

 

Thank you so much for your reply. I've resolved this before your reply but I used a similar approach as yours.

 

Appreciate it!

Anonymous
Not applicable

Hi Kim_Chan,

 

Good Idea. But this is not possible in Power BI when you select value in slicer and it should highlight it in the table visual.

 

You can post this in Power BI Ideas and Microsoft will consider this and Implement this feature in the later version of Power BI.

 

Regards,

Pradeep

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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