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 / Filter gallery with se...
Power Apps
Answered

Filter gallery with search box alongside other components

(0) ShareShare
ReportReport
Posted on by 321

Hi,

 

So I have an App, within that I have a gallery of items, the gallery can be filtered by the following

 

Text search box, radio buttons, checkboxes and a combobox. This works fine, but for the code specifically relating to the text search box I have used Startswith, is there anyway I can adapt my code so that the code uses 'Search' instead of StartsWith' as I want users to be able to type any term in rather than specifically what it starts with. I have included my existing code below.

 

Filter(

 

 

 

    MaintRequests,

 

 

 

    StartsWith(

 

 

 

        Title,

 

 

 

        TextBox_1.Text

 

 

 

    ) && (Status.Value = Status_Radio_1.Selected.Value || Status_Radio_1.Selected.Value = Blank())

 

 

 

    && ((Checkbox_Me_1.Value && Owner.Email = User().Email) || Checkbox_Me_1.Value = false && Checkbox_Other_1.Value = false) || (Checkbox_Other_1.Value && Owner.Email = Resource_ComboBox_1.Selected.Email))

Categories:
I have the same question (0)
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    The below should work, the search or in function is not delegable, but it looks like the 2nd filter function (your original code) is this means it should retrieve the data from the database, processing the query on the server, then carry out the 'in' search once the data is collected within PowerApps. fyi - i have not adjusted the rest of your code if it works.

     

    Filter(

    Filter(MaintRequests,

    (Status.Value = Status_Radio_1.Selected.Value

    ||

    Status_Radio_1.Selected.Value = Blank())

    &&

    ((Checkbox_Me_1.Value && Owner.Email = User().Email)

    ||

    Checkbox_Me_1.Value = false && Checkbox_Other_1.Value = false)

    ||

    (Checkbox_Other_1.Value && Owner.Email = Resource_ComboBox_1.Selected.Email))

    ,

    TextBox_1.Text in Title)

  • WarrenBelz Profile Picture
    155,495 Most Valuable Professional on at

    Hi @JimboSey ,

    I have made the above Delegable (sort of) as the in Filter is not - the top filter needs to return less than your Delegation limit for you to get the full results

    With(
     {
     wList:
     Filter(
     MaintRequests,
     (
     Len(Status_Radio_1.Selected.Value) = 0
     Status.Value = Status_Radio_1.Selected.Value || 
     ) && 
     (
     !Checkbox_Me_1.Value || 
     Owner.Email = User().Email) || 
     ) && 
     (
     !Checkbox_Other_1.Value || 
     Owner.Email = Resource_ComboBox_1.Selected.Email
     )
     )
     },
     Filter(
     wList,
     TextBox_1.Text in Title
     )
    )

     

    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
    155,495 Most Valuable Professional on at

    Hi @JimboSey ,

    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

  • JimboSey Profile Picture
    321 on at

    Hi, firstly thanks for your reply. I got an error with the code you provided (I can share once I log on). But the previous suggestion worked a treat.

     

    Thanks again

  • JimboSey Profile Picture
    321 on at

    Thanks so much, worked great.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard