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
meiwah
Resolver I
Resolver I

Check whether a String contains any elements of a column

Hi,

meiwah_0-1702373354913.png

If I've a table Customers and tells the fruits each customer likes, then I've another table contains all local fruits. I would like to find out what local fruits each customer likes. Pls kindly advise how to achieve this in Power Query. Thanks!

 

meiwah_1-1702373452246.png

 

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi,

With

Fruits = #"Local Fruits"[Fruit]

add column 

(x) => Text.Combine(List.Select(Fruits, each Text.Contains(x[Likes], _))," ") 

 Stéphane

View solution in original post

1 REPLY 1
slorin
Super User
Super User

Hi,

With

Fruits = #"Local Fruits"[Fruit]

add column 

(x) => Text.Combine(List.Select(Fruits, each Text.Contains(x[Likes], _))," ") 

 Stéphane

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.