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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Wildcard search on del...
Power Apps
Unanswered

Wildcard search on delegable filters in gallery.

(0) ShareShare
ReportReport
Posted on by 286
Hello
 
We have PowerApps with gallery control which is tied to doc library in SharePoint. Gallery shows these specific files and has filters implemented within PowerApps. We have taken care of delegable queries and made sure it work. 
 
Client has now come up with request of wildcard text search which is not delegable . We alredy have filter in palce which is using "starts with" and it works since its delegable. We are havung hard time explaining why it wouldnt work with wildcard and they will end up seeing maximum 2k fikes from 20k files dataset,  if we add wildcard text search .
 
So , question is. Is there a way to have wildcard implemented only on the fetched current data with gallery while other filters continue to work and fetch data from DataSource .
 
Currently, the moment I add text search whole items data source shows warning and only first 2k files are shown 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,843 Most Valuable Professional on at
    Wildcard search on delegable filters in gallery.
    If I am reading this correctly, you can get your sample down under 2k with a Delegable query and want to Search this ? If so
    With(
       {
          _Data:
          Filter(
             SPLibrary,
             StartsWith(
                YourTextField,
                YourTextValue
             )
          )
       },
       Search(
          _Data,
          YourSearchInput.Text,
          YourSearchedField
       )
    )
    You can search several fields at the bottom if you want - once the top filter returns less than 2k records (although note you will get no warning if it potentially returns more - just the first 2k matching records), the bottom one will return all matching records from the top set.
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • Rohit4044041 Profile Picture
    286 on at
    Wildcard search on delegable filters in gallery.
    Thank you @WarrenBelz​​​​​​​ . Unfortunately we already have Formula after Scope. Currently we have "ForAll" used on the result set i.e. _Data. We use this to get row number of row to apply alternating color. 
     
    Is there any way to use both ForAll And Search function?
  • Verified answer
    WarrenBelz Profile Picture
    152,843 Most Valuable Professional on at
    Wildcard search on delegable filters in gallery.
    If you simply want to also add alternate shading
    With(
       {
          _Data:
          Filter(
             SPLibrary,
             StartsWith(
                YourTextField,
                YourTextValue
             )
          )
       },
       With(
          {
             List:
             Search(
                _Data,
                YourSearchInput.Text,
                YourSearchedField
             )
          },
          ForAll(
             Sequence(CountRows(_List)),
             Patch(
                Index(
                   _List,
                   Value
                ),
                {RowNo: Value}
             )
          )
       )
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard