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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

@Anonymous 

 

Please see attached file as well

 

Tieman.png

View solution in original post

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.