Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Answered

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

(0) ShareShare
ReportReport
Posted on 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 at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Query

#1
lbendlin Profile Picture

lbendlin 2 Super User 2025 Season 1

#1
mmbr1606 Profile Picture

mmbr1606 2 Super User 2025 Season 1

#1
ronaldwalcott Profile Picture

ronaldwalcott 2

Overall leaderboard

Featured topics