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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
WheelchairWilly
Helper II
Helper II

Can Power BI search in one data to look for similar data in another data, then highlight that data

I want Power BI to look in GW02 data and if it finds any names that are the same that are listed in Picked Players data

then highlight that name in Picked Player. Screenshot 2023-07-30 124005.png

2 ACCEPTED SOLUTIONS

@WheelchairWilly Here are the steps to follow 

1. Create a new column in table 'Bav Team'

Compared = IF(CONTAINS('Goal Scorers', 'Goal Scorers'[Goal], 'Bav Team'[Goals]), "Y", "N")
 2. Apply the conditional formattion 
othy_bi_0-1690879748893.png


Did it work ?  ‌‌👍 A kudos would be appreciated 📢 Mark it as a solution to help spreading 

View solution in original post

Worked a treat. Many thanks for your effords.Worked a treat. Many thanks for your effords.

View solution in original post

22 REPLIES 22
v-binbinyu-msft
Community Support
Community Support

Hi @WheelchairWilly ,

Please try below steps:

1. below is my test table

Bav Team:

vbinbinyumsft_0-1690854045584.png

Goal Scorers:

vbinbinyumsft_1-1690854075061.png

2. create a measure with below dax formula

Measure =
VAR _str =
    CONCATENATEX ( 'Goal Scorers', [GW02], "," )
VAR cur_pp =
    SELECTEDVALUE ( 'Bav Team'[Picked Players] )
VAR _val =
    IF ( CONTAINSSTRING ( _str, cur_pp ), "Blue" )
RETURN
    _val

3. add a table visual with Bav Team fields, and set the conditional formatting

vbinbinyumsft_2-1690854210407.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

WheelchairWilly
Helper II
Helper II

Can you send me a link so I can send on my file.

DataVitalizer
Super User
Super User

Hi @WheelchairWilly 

1. Create a relationship between tables

2. Create a new column in 'Bav Team'

Compared = IF(RELATED('Goal Scorers'[GW02])='Bav Team'[Picked Players],"Y","N")

3. Apply a conditional formatting / Background coloe on the table visual

othy_bi_0-1690728727325.png

Did it work ?  ‌‌ Mark it as a solution to help spreading knowledge, 
📢 Don't forget a kudos 👍 would be appreciated

Hi, This is what I'm getting when I ENTER YOUR CODE.Screenshot 2023-07-30 194944.pngScreenshot 2023-07-30 195016.png

Could you share the pbix file?


Did it work ?  ‌‌ Mark it as a solution to help spreading knowledge
Was this exchange helpful? A kudos 👍 would be appreciated

Both links got got blocked, could you share a public link?

@WheelchairWilly  you can use this service https://wetransfer.com/

 

I've sent both files. How do you pick these up without me having your email?

Hi @WheelchairWilly 
I could open the file, I will get this work done, afterwards, I will get back to you.

@WheelchairWilly Here are the steps to follow 

1. Create a new column in table 'Bav Team'

Compared = IF(CONTAINS('Goal Scorers', 'Goal Scorers'[Goal], 'Bav Team'[Goals]), "Y", "N")
 2. Apply the conditional formattion 
othy_bi_0-1690879748893.png


Did it work ?  ‌‌👍 A kudos would be appreciated 📢 Mark it as a solution to help spreading 

Worked a treat. Many thanks for your effords.Worked a treat. Many thanks for your effords.

I am glad I was able to help

othy_bi, Can I ask you how would I see each GW01 right through to GW38, ie if I click GW21 I would see the totals for that GW and only that GW.  I seem yo be getting the total of everything when I click on any of the GW's you can see on my screenshot. (What you see are made up by me-so dont worry if you change things)Screenshot 2023-08-01 200420.png 

@WheelchairWilly if you don't mind being more specific, I can see now what you have in your report, can you explain what you want to dispay/calculate instead?

 

This file  is how I would like Power BI to look. https://we.tl/t-WhXtjU5ACz

Hi @WheelchairWilly 

I am trying to recreate the table visual you have, what is the relationship between both tables?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.