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 gallery by comp...
Power Apps
Unanswered

Filter gallery by comparing two dates

(0) ShareShare
ReportReport
Posted on by

Hey guys,

 

I want to filter a gallery by comparing the date on a column and today.

In the SP list the column is a string formatted as "dd/mm/yyyy" but when i go to filter the gallery as "Filter(Gallery1;Bookingdate>=Text(Today();"dd/mm/yyyy")) it gives me error.

 

Any tips?

Categories:
I have the same question (0)
  • Verified answer
    LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    Check the data type in the Bookingdate column, whether it is plain text or date. If it's date, you don't need to use the Text() function. If it's text, you can do it like this:

     

    Filter(
     Gallery1,
     DateValue(Bookingdate) >= Today()
    )

    More information about the DateValue function here.

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    You need to do this:

    Filter(
     Gallery1,
     DateValue(Bookingdate) >= Today()
    )

     

    You need to compare date with date, rather than date with text.

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube:
    https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter:
    https://twitter.com/phipps0218

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard