web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter DateFrom and Da...
Power Apps
Answered

Filter DateFrom and DateTo and Display on my - Gallery

(0) ShareShare
ReportReport
Posted on by 56

I've been trying to filter my gallery by this formula :

 

Items formula on Gallery : 

 

 'Date Created' >=DateFrom.SelectedDate && 'Date Created'<= DateTo.SelectedDate

 

 

DefaultDate Formula : 

 

Today()

 

 

 

So, for example I choose May 1, 2022 to May 4, 2022 - I'd like to display on items on my Gallery from those dates. But, from my filter formula above whats only displaying is from May 1, 2022 - May 3, 2022.

 

How can I get it to display the items exactly from the selected dates not "between" it?

 

Also, is there a way to display the way to display the items descending date from the latest date & time to last?

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @BIBC-IT ,

    I suspect your fields are date and time, so everything in the end date is after 0:00am, which means you need to add one to the end date

    'Date Created' >=DateFrom.SelectedDate && 'Date Created'<= DateAdd(DateTo.SelectedDate,1,Days)

     

    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.

    Visit my blog Practical Power Apps

     

  • BIBC-IT Profile Picture
    56 on at

    That worked! Thank you.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard