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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
NeoChau
Frequent Visitor

How to highlight table base on user selection on another table visual?

Hello everyone,

 

NeoChau_0-1745575133468.png

What I am trying to do here is when user select/click A from the right table, left table "A" will be highlighted.

Both tables are joined.

i tried if (selectedvalue(righttable[column A] = selectedvalue(lefttable[column A],"red","Green")

turns out the whole column is hightlighted.

 

Thank in advance!!!!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @NeoChau 

To achieve the behavior you want, you need to create a disconnected table for selection, for example:

Ritaf1983_0-1745669353719.pngRitaf1983_1-1745669374493.png

And then you can use a measure for condutuional formatinh like 

selected color =
if(SELECTEDVALUE(selections[Column1])=SELECTEDVALUE('Table'[Column1]),"pink","white")
Result
Ritaf1983_2-1745669453971.png

The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @NeoChau 

To achieve the behavior you want, you need to create a disconnected table for selection, for example:

Ritaf1983_0-1745669353719.pngRitaf1983_1-1745669374493.png

And then you can use a measure for condutuional formatinh like 

selected color =
if(SELECTEDVALUE(selections[Column1])=SELECTEDVALUE('Table'[Column1]),"pink","white")
Result
Ritaf1983_2-1745669453971.png

The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thanks! It works! but that will be a bit tricky to disconnect the table.

Deku
Super User
Super User

Think this might do it

 

Measure =

Var Vals=

Calculate(

Countrows( lefttable ),

Keepfilters(

Treatas(

values( righttable[column a]),

Lefttable[column a]

)

)

)

Return

If(

Vals > 0

"Green",

"Red"

)


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors