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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
llinasG
Frequent Visitor

Search and return keyword from unrelated table

Hi, I have two tables. 1st table contains column with text.

 

Table1[Text]

 

This item bought at Amazon
NETFLIX subscription charge
Monthly sibscription to Youtube premium

 

2nd Table contains keywords.

 

Table2 [keyword]

 

Amazon
NETFLIX
Youtube

 

I am looking for DAX solution to find a keyword in unrelated table amongst the text and return that keyword to the 1st table.

 

Like this

TextKeyword
This item bought at AmazonAmazon
NETFLIX subscription chargeNETFLIX
Monthly sibscription to Youtube premiumYoutube

 

 

This is the closest what I found, but solution is to return YES or NO value.

It says need to use CONCATENATEX et CALCULATETABLE  functions, but no idea how these could work.

https://community.fabric.microsoft.com/t5/Desktop/DAX-Search-value-in-unrelated-table/m-p/2554759#M9...

 

Would be great to have this resolved! Please.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@llinasG , Try a new column in table 1

 

Column = Maxx(FILTER(T2,SEARCH(T2[Keywords],T1[Text],,0)>0), T2[Keywords])

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@llinasG , Try a new column in table 1

 

Column = Maxx(FILTER(T2,SEARCH(T2[Keywords],T1[Text],,0)>0), T2[Keywords])

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Great solution, thanks very much!!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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