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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors