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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SW_Srinivas
Frequent Visitor

Dynamically color cell in table based on slicer value

Hi Everyone ,

 

I have a requirement as follows :

I have 3 columns containing names .

Column A     Column B     Column C

 Name 1         Name 2         Name 3

 Name 2          Name 1        Name 3

 Name 3          Name 2        Name 1

 

Now I need to create a report page , which has a slicer and a table visual.

The slicer should contain all the names from Column A , B & C.

Eg : If Name 1 is selected in the slicer, in the table where ever Name 1 appears ( in all 3 columns) , the cell should get highlighted with a colour.

Is this possible to achieve..

 

Would appreciate any help ... 

 

Thanks in Advance ..

SS

 

 

 

@amitchandak @truptis 

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

Hi @SW_Srinivas ,

Refer this video:

https://youtu.be/DLq5i1mlFqg 

 

If this works, please mark it as a solution & hit the thumbs up. Thank you.

View solution in original post

5 REPLIES 5
truptis
Community Champion
Community Champion

@SW_Srinivas -> go to transform data and try to unpivot 

@truptis Thanks thanks ... I got it 🙂 

 

One last question ... Can we achieve the same if we use a Text Filter (Search) instead of the Slicer ?

 

Thanks 

SS

@SW_Srinivas , you have got a search option within the slicer. You can use that.

Click on the slicer-> click on the 3 dots-> search

 

This will give you a search bar on the slicer.

 

truptis
Community Champion
Community Champion

Hi @SW_Srinivas ,

Refer this video:

https://youtu.be/DLq5i1mlFqg 

 

If this works, please mark it as a solution & hit the thumbs up. Thank you.

Hi @truptis ,

 

Thank you so much for the super fast reply ... Yes it does help the part of my requirement which needs the cell to be highlighted.

In addition , I was thinking of combining values from the 3 columns into 1 to put into the slicer. But how do I , on the filter selection, search through the 3 different columns and highlight values in each column where the selected value appears..

 

Thanks,

SS

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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