Skip to main content
Community site session details

Community site session details

Session Id : hpm+rLBiVUt5ZsvE7onsPy
Power Apps - Power Query
Answered

How to check if a column contains the characters in the column of another table

Like (0) ShareShare
ReportReport
Posted on 28 Nov 2023 05:50:41 by

Hi, 

 

I have 2 tables below. I need to have a new column in Table1 to have a Boolean value if the Text contains any value listed in Table2 column "SearchText". I have tried to use list.ContainsAny() , but there is no space in the text so I can't use split to generate a text list. Is there any idea to achieve it? Thank!

Table1 

IDName
1coffeeprod
2ABCcigarette
3XXalcoholXX
4ddbeverages

 

Table2

SearchText
coffee
cigarette
alcohol
  • Community Power Platform Member Profile Picture
    on 28 Nov 2023 at 08:19:18
    Re: How to check if a column contains the characters in the column of another table

    Thanks! it works for me. 

  • v-mengmli-msft Profile Picture
    on 28 Nov 2023 at 06:10:36
    Re: How to check if a column contains the characters in the column of another table

    Hi @Anonymous ,

     

    I assume that if value in Name column returns "true", otherwise, returns "false".

    Please try this:

    AddColumns(Table1,"test",!IsBlank(LookUp(ForAll(Table2.SearchText As C,C.SearchText in Name),Value=true)))

     

    Best regards,

    Rimmon

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete