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 / Gallery - wildcard fil...
Power Apps
Unanswered

Gallery - wildcard filtering

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

Not sure if my title is misleading, unsure on terminology.

 

I have a power app where colleagues select a client name from a combo box, and the combo box selection filters a gallery.

 

I have an issue where, if a client has a middle name, the user gets a blank in the combo box when searching for the name. For example, 'Caelan T Gill' would not display if the user searched 'Caelan Gill'. I'm trying to find a way to have the dropdown options return names where the search text appears anywhere in the name, allowing for letters between the text. Effectively, I'm wanting to filter the items for each letter of the search individually.

 

Is there a way to do this?

 

I've been messing with splitting the search text, concatenating it back together again with """" "&" and filtering the items by that, but can't seem to get it to work.

 

 

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @Caelan 

     

    you can try something like that:

    Filter(
     YourDataSource,
     TextSearchBox1.Text = "" || 
     Lower(Substitute(ThisItem.FullName, " ", "")) 
     Contains 
     Lower(Substitute(TextSearchBox1.Text, " ", ""))
    )
    

     

    be aware that this is only a high level approach

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Caelan ,

    Your example will never work as it needs to match the complete string you have entered with any part of the target field (Caelan Gill as a string is not in Caelan T Gill ). I had a bit of a play with Split and this seems to work in the Items.  NOTE: as it is not Delegable, your list cannot be above your Data Row Limit. - I have used With()  at the top to mask the warning, but also to convince the Combo Box to search.

    With(
     {
     _Items: Split(
     Self.SearchText,
     " "
     ),
     _Data: YourSPList
     },
     Ungroup(
     ForAll(
     _Items,
     Filter(
     _Data,
     Value in YourFieldName
     )
     ),
     Value
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard