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 by a Da...
Power Apps
Answered

Filter Gallery by a Date within 24h

(0) ShareShare
ReportReport
Posted on by 10

Hey guys 

Ive been working on an App in which i included a Filter Option. 

I can Filter my gallery by Titel or by a Status given to my Sharepoint list. 

Plus i always Filter by todays Date. 

 

How can i add a Filter with a time range between to Date pickers and if that is Not used by Date created (sharepoint list) for a Max of 24h.

 

Hope somebody can help 😁

Categories:
I have the same question (0)
  • Verified answer
    Nicbo Profile Picture
    145 on at

    Hi,

    Do you want to check if the user has selected a date or do you use a variable?

    You probably can use something like this

     

    If(!IsBlank(DatePicker1.SelectedDate), //Or add you variable here instead
    Filter(
    Datasource,
    Date >= DatePicker1.SelectedDate And Date <= DatePicker2.SelectedDate),
    Filter(
    Datasource, Date > DateAdd(Now(), -24, TimeUnit.Hours))

     


    If you are useing the datepickers have in mind that the default value is Today() and therefore isn't blank.

    Hope it helps!

  • TS0 Profile Picture
    10 on at

    Thanks i will try that tomorrow and give you a Feedback 😁

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard