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 / Combining Sort, Filter...
Power Apps
Answered

Combining Sort, Filter and Search on a Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a gallery linked to a list in sharepoint and, I already have it previously sorted by priority in descending order.
(Like this: Sort('Matriz de necesidades(Building)';Prioridad;Descending))

CamiloHU_0-1634316550343.png

 

But I need to create a series of filters and a search bar and, therefore, I need to combine the formulas and, I don't know exactly how to do it, every time I try to implement it I get errors. I need to implement a search bar to search for specific items and, additionally, I need to make 3 filters, one of employees, one by project status and one by date range but, I don't know how to combine the formulas into one to put it in the "items" formula of the gallery.

 

Categories:
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Here is a link to a video that @RezaDorrani did on Power Apps Sort and Filter on Multiple Columns. I think you will find it very helpful and informative.

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    I see another response while I was working on this. Anyway here is the filter that you are looking for.

     

    StalinPonnusamy_0-1634332127183.png

     

    With(
     {wCode: IssueTracker},
     Sort(
     Filter(
     wCode,
     //User Search
     (IsBlank(UserComboBoxSearch.SelectedItems) || IsEmpty(UserComboBoxSearch.SelectedItems) || UserComboBoxSearch.Selected.DisplayName in 'Assigned to'.DisplayName) 
     
     //Project Status Search
     && (IsBlank(ProjectStatusDropdown.Selected) || Status.Value = ProjectStatusDropdown.Selected.Value) 
     
     //Ttitle Search control
     && (IsBlank(SearchTitle.Text) || SearchTitle.Text in Title) 
     
     //Start Date
     && (IsBlank(StartDateC.SelectedDate) || Created >= StartDateC.SelectedDate) 
     
     //End Date
     && (IsBlank(EndDateC.SelectedDate) || Created <= EndDateC.SelectedDate)
     ),
     Title,
     Ascending
     )
    )

     

    Please Subtitle based on your data source.

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous

     

    Please let us know if anything needs on your post. We can help with this.

    Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

    Thanks,
    Stalin - Learn To Illuminate

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard