web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search multiple words ...
Power Apps
Answered

Search multiple words within gallery

(0) ShareShare
ReportReport
Posted on by 71

Good day beautiful people,

 

My goal:

With textinput field I would like to be able to search for multiple words within the single string.

 

What I have:

I have SP list with multiple columns, e.g:

User1Skill1 Skill2 Skill3Name1 Name2Lorem1Ipsum2
User2Skill2 Skill4 Skill5Name2 Name3Lorem1 Lorem2Ipsum3 Ipsum4


Which was transformed to my gallery with additional column: "HelperConcatenate", which is concatenation of all above (without User).

What I tried:

I was thinking of creating a collection with a user name and all of these mentioned words, which I did with this formula:

ClearCollect(
 CollectionConcatenate,
 ForAll(
 Gallery2.AllItems,
 ForAll(
 Split(ThisRecord.HelperConcatenate.Text, " "),
 {
 CollectionConcatenate: Value,
 CollectionName: HelperName.Text
 }
 )
 )
)

 

Which created multiple nested tables in my collection, e.g:

User1Skill1
User1Skill2
User1Skill3
User1Name1
User1Name2
User1Lorem1
User1Ipsum2

 

Each user got it's own nested table, so for now I have approx. 15 items.

 

Where I am lost:

Now this is the part where I am stuck. I have 15 nested tables within the collection and I don't know how can I check if a word(s) appears in any of these. I know that this will be created with a button "search" because I don't think this is possible to be dynamic, but I'm fine with that. How can I search words from textinput in all nested tables in my collection and return user names where such word(s) were found?

 

In my scenario if someone types:
Skill2 Name2 Name3 it should show both User1 and User2 since they both have common words.

Skill1 Ipsum2 it should show just User1.

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Copycat ,

     

    Could you please show some screenshots about collection? What are column names in your collections?

    You can also try this.

    Distinct(Search(Ungroup(CollectionConcatenate,Value),CollectionConcatenate,CollectionName),CollectionName)

     

     

    Best regards,

    Rimmon

  • Copycat Profile Picture
    71 on at

    Good day!

    I will try to use your formula within few minutes, thanks for a tip!

    Attached 2 screens; main one from Collection and after expanding single table.

    MainScr.png
    2ndscreen.png
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Copycat ,

     

    How is the situation now?😀

     

    ——————————————————————————————————————————————————

    If my answer helps you solve the problem, please accept it as a solution.

    If you have another question, please post it in new post.

     

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard