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 / How to filter gallery ...
Power Apps
Unanswered

How to filter gallery with more than one value mentioned in textbox using comma

(0) ShareShare
ReportReport
Posted on by 18

How to filter gallery with more than one value mentioned in textbox using comma.

I need to filter gallery using two or more values separated by comma in textinput

 

Categories:
I have the same question (0)
  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @AishwaryaRane11 

    Try this in your gallery Items property:

    Filter(YourDataSource,ColumnName in Split(TextInput1.Text,",").Result)

    Note: If you put spaces between the commas in your textbox, this formula will not work properly. 

  • AishwaryaRane11 Profile Picture
    18 on at

    Hi @Adrian_Celis  , Is there any other way to do it without delegation warning? I have set the delegation limit to 2000 but the records in my SharePoint list are more than 30,000

     

  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @AishwaryaRane11 Sorry, the 'in' operator is non-delegable. If you can filter it more to trim it down before you do your filtering in the textbox, then that can help.

    Filter(
    Filter(YourDataSource,ColumnName="More Filtering",
    ColumnName in Split(TextInput1.Text,",").Result
    )

    Otherwise, there is no other function that will do the same that is delegable.

  • AishwaryaRane11 Profile Picture
    18 on at

    Hi @Adrian_Celis is it possible without using in or exactin?

     

  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    @AishwaryaRane11 

    One workaround is instead of a textbox where the user can place several values separated by commas, why not place for example 3 textboxes (one for each value) then you can use your filter formula like:

    Filter(YourDataSource,ColumnName = Textbox1.Text Or ColumnName = Textbox2.Text Or ColumnName = Textbox3.Text)

    The only downside is that you can only filter up to how many textboxes you provide.

  • AishwaryaRane11 Profile Picture
    18 on at

    @Adrian_Celis 

    That would have helped but my requirement is with comma separated values

  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    @AishwaryaRane11 Sorry, as far as I know, the in / exactin method is the only way I know to get past your requirement. Hope others can also suggest another way.

  • AishwaryaRane11 Profile Picture
    18 on at

    Thanks for your help @Adrian_Celis .Really appreciate the efforts🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    But what if you need to check for a substring of the text input anywhere in the column, not for a substring of the column in the text input? 

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

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard