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 and sea...
Power Apps
Answered

Filter gallery and search filter

(0) ShareShare
ReportReport
Posted on by 407

I have a gallery that is filtered by 2 values "Active" and "Pending" 

Filter ('SP Job Request',Status.Value="Active" || Status.Value="Pending")

I also want to be able to search by company name. This works on its own

SortByColumns(Filter([@'KBX Job Request'], StartsWith(Company, TextSearchBox1.Text)), "Company", If(SortDescending1, Descending, Ascending))

 

I am trying to combine the two formulas so that the gallery still only shows active and pending but also have the option to search by company name. Something like below  

 

Filter ('KBX Job Request',Status.Value="Active" || Status.Value="Pending");
SortByColumns(Filter([@'KBX Job Request'], StartsWith(Company, TextSearchBox1.Text)), "Company", If(SortDescending1, Descending, Ascending))

 

any assistance would be much appreciated

 

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    With({
     fltd: Filter (
     'KBX Job Request', OR(Status.Value="Active" , Status.Value="Pending"
     )
     ) 
     },
     SortByColumns(
     Filter(
     fltd, StartsWith(
     Company, TextSearchBox1.Text
     )
     ), "Company", If(SortDescending1, Descending, Ascending)
     )
    )
  • Matt383 Profile Picture
    407 on at

    I am also getting a delegation warning on another app with this 

    SortByColumns(Filter([@'KAS Reimbursement'], StartsWith(Description.Value, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

     

    Is there another way to rewrite without delegation warning?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Matt383 

    It is probably because Description is either a lookup or choice field.  

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard