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 / Gallery with Sort, Fil...
Power Apps
Unanswered

Gallery with Sort, Filter and Search

(0) ShareShare
ReportReport
Posted on by 217 Season of Giving Solutions 2025

I have a gallery that the user can select a button and the gallery will filter the items, but they should also be able to just search and that should search within the filtered items, the gallery should also be sorted by the modified date, below if what i have but i cannot get it to work

If( varShowInprogress,
 Sort(
 Filter(
 D_HR_MedicalVpnRequests,
 status.Value <> "Agreement Ended",
 StartsWith(
 employee.DisplayName,
 StartsWith(employee.DisplayName ,SearchBox.Text)
 ) 
 ), 
 Modified,
 SortOrder.Descending
 ),
 If( varShowAllApplications,
 Sort(
 Filter(
 D_HR_MedicalVpnRequests,
 status.Value = "New Application",
 StartsWith(
 employee.DisplayName,
 StartsWith(employee.DisplayName ,SearchBox.Text)
 ) 
 ), 
 Modified,
 SortOrder.Descending
 )))

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,495 Most Valuable Professional on at

    Hi @CiaranCampbell ,

    Probably something like this

    Sort(
     Filter(
     D_HR_MedicalVpnRequests,
     (
     (
     varShowInprogress &&
     status.Value <> "Agreement Ended"
     ) ||
     (
     varShowAllApplications &&
     status.Value = "New Application"
     )
     ) &&
     StartsWith(
     employee.DisplayName,
     SearchBox.Text
     )
     ), 
     Modified,
     SortOrder.Descending
    )

     

    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.

    MVP (Business Applications)   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

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
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard