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 Filter, Sort...
Power Apps
Unanswered

Combining Filter, Sort and Search

(0) ShareShare
ReportReport
Posted on by 149

I want to be able to sort, filter and now also search with an InputText. I'm just a little bit confused of how that can be done, when I already have a Filter and Sort function in the Gallery Item property.

Rama96x_0-1633354801154.png

If(
 Gallery5.Selected.Value = "All" And TextInput1.Text = "",
 SortByColumns(
 SortByColumns(
 'Job Instruction - Feedback App',
 "DateCreated",
 Ascending
 ),
 "FeedbackCompleted",
 [
 "Not started",
 "On going",
 "Completed", 
 "Cancelled"
 ]
 ), 
 Filter(
 'Job Instruction - Feedback App',
 FeedbackCompleted = Gallery5.Selected.Value
 )
)

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Try:

    If(
     Gallery5.Selected.Value = "All" And TextInput1.Text = "",
     SortByColumns(
     SortByColumns(
     'Job Instruction - Feedback App',
     "DateCreated",
     Ascending
     ),
     "FeedbackCompleted",
     [
     "Not started",
     "On going",
     "Completed", 
     "Cancelled"
     ]
     ), 
     Filter(Search( 
     'Job Instruction - Feedback App',
     SearchBox.Text,"ColumnToSearch"),
     FeedbackCompleted = Gallery5.Selected.Value
     )
    )

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

    Please Subscribe to my Youtube Channel

  • Rama96x Profile Picture
    149 on at

    @eka24 This works if "All" button has not been picked., however, I would like this to be applicable for all buttons. How would I do it inside GAllery5.Selected.Value = "All" as well?

  • Rama96x Profile Picture
    149 on at

    Idealy I just want it to be above the IF statement, because you should be able to search whether you have picked "All", "On going" etc.

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 414

#2
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard