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 SearchBox and /or Datepickers

(0) ShareShare
ReportReport
Posted on by 27

Hello dear all,

 

please assist as i cannot syntax of the below requirement formula:

 

Gallery (connected to a SP list) must be filtered by:

  • A SearchBox (by Name, Department,Status..)
  • 2 datepickers in the same screen with searchbox (datepicker1(Start) and datepicker2(End)) that filter  the range of Start and End.

 

How can i filter (or search) the gallery with either searchbox or the date range and (if possible) combination of the two options.

(e.g. filter the date range and then filter by name)

 

Looking forward to learn from you replies.

Thanks @ALL!!!

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @LTEVA ,

    Firstly, you need to set some and/or rules - you cannot have them both at the one time and also neither dates nor the in Filter (nor Search) are Delegable, but the syntax would be something like this

    Filter(
     YourSPListName,
     YourStartDP.SelectedDate >= Start &&
     YourEndDP.SelectedDate <= End &&
     (
     YourSearchBox.Text in Name ||
     YourSearchBox.Text in Department ||
     YourSearchBox.Text in Status
     )
    )

     

    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.

  • Verified answer
    LTEVA Profile Picture
    27 on at

    Hi@WarrenBelz,

     

    this part of your solution helped me a lot:

     

    YourStartDP.SelectedDate >= Start &&
     YourEndDP.SelectedDate <= End &&

     

    Afterwards i used the folowing which worked for my case:

     

    Filter(
     YourSPListName,
     YourStartDP.SelectedDate >= Start &&
     YourEndDP.SelectedDate <= End &&
     (
     StartsWith(Name,SearchBox.Text) ||
     StartsWith(Department,SearchBox.Text)
     StartsWith(Status,SearchBox.Text)
     )
    )

     

     

    Many thanks!!!

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 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard