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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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.

  • v-mengmli-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard