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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors