Skip to main content
Community site session details

Community site session details

Session Id : yLONInMcLIuIZMLFciPbT5
Power Apps - Building Power Apps
Unanswered

Filter Gallery if string in search box is in any of multiple columns

Like (0) ShareShare
ReportReport
Posted on 18 Feb 2022 14:26:08 by 18

I am making a canvas app that filter the results based on text entered in a text box.

 

By default, PowerApps only searches one column, and only displays rows in the Gallery that starts with the term entered. But I want to display results that displays a dataset if a string appears anywhere in one of the columns defined by me.

 

I also have a SharePoint list with more than 1500 items.

 

Is this possible?

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 04 Mar 2022 at 23:36:26
    Re: Filter Gallery if string in search box is in any of multiple columns

    Hi @kaido20 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 21 Feb 2022 at 11:55:58
    Re: Filter Gallery if string in search box is in any of multiple columns

    @kaido20 ,

    If there were, I would have provided it.  You cannot use Search or In a Delegable manner, so the only real option depending on the size of your data is to either pre-filter (a delegable filter that gets the returned numbers under your Delegation limit) make a big collection - which requires a bit more work (see my blog on this). Also if you read the top of the blog, Delegation is explained.

     

    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.

    Visit my blog Practical Power Apps

     

     

  • kaido20 Profile Picture
    18 on 21 Feb 2022 at 11:44:51
    Re: Filter Gallery if string in search box is in any of multiple columns

    @WarrenBelz any alternatives to make the code delegable?

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 21 Feb 2022 at 09:05:44
    Re: Filter Gallery if string in search box is in any of multiple columns

    Hi @kaido20 ,

    Assuming 'Händler-Firmierung'CC_Nr  and 'Interesse an' are all Text fields, the code is correct, however as I noted previously, this is not Delegable. 

     

    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.

    Visit my blog Practical Power Apps

  • kaido20 Profile Picture
    18 on 21 Feb 2022 at 07:44:03
    Re: Filter Gallery if string in search box is in any of multiple columns

    @WarrenBelz 

    This is the code: 

     

    SortByColumns(Filter([@Händlerliste]; TextSearchBox1.Text in 'Händler-Firmierung' || TextSearchBox1.Text in CC_Nr || TextSearchBox1.Text in 'Interesse an');"H_x00e4_ndler_x002d_Firmierung"; If(SortDescending1; Descending; Ascending))

     

    So I am search across different fields

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 19 Feb 2022 at 20:30:15
    Re: Filter Gallery if string in search box is in any of multiple columns

    Hi @kaido20 ,

    That is not a bug - it is a Delegation warning (as per my note) as the in filter is not Delegable and will not work fully on data sets more than your (500-2000) Delegation limit. If you supply your code, I can answer this properly if you have other issues.

     

    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.

    Visit my blog Practical Power Apps

  • kaido20 Profile Picture
    18 on 19 Feb 2022 at 14:45:22
    Re: Filter Gallery if string in search box is in any of multiple columns

    I've actually tried that, but I started running into a bug where some data simply disappear from the gallery, and I get a notice saying that the the query is not suitable for large data sets. 

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 18 Feb 2022 at 20:30:11
    Re: Filter Gallery if string in search box is in any of multiple columns

    Hi @kaido20 ,

    It would be good to supply your existing code, but I suspect you have a line something like

    StartsWith(FieldName,ControlName.Text)

    You need instead

    ControlName.Text in FieldName

    but note that this is not Delegable.

     

    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.

    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading started