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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

M Power Query Lookup words from table

Hello,

 

I try to do the following in Power Query:

 

I have a dataset which contains a text column and an other table (lookup table) with a list of words (around 200). If the text from my dataset contains one or more words from the lookup table i want to add those words in a new column (comma seperated)

 

Below an example of how I would like to have it.

 

I hope someone can help me with this, thanks in advance!!

 

Regards, Tiemen

example.JPG

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

Please see attached file as well

 

Tieman.png

Zubair_Muhammad
Community Champion
Community Champion

Hi @Anonymous 

 

See if this helps

 

First add a custom column

 

=Text.SplitAny([Text]," ?")

and then

Text.Combine(
List.Select([Custom], each List.Contains(Lookup[Words],_,Comparer.OrdinalIgnoreCase))
,
",")
Anonymous
Not applicable

@Zubair_Muhammad  Thank you very much!! This works perfectly Smiley Very Happy

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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