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 date
Power Apps
Answered

Filter gallery by date

(0) ShareShare
ReportReport
Posted on by 13

Hi All,

I have a gallery that connected to sharepoint list. One column from this list is a date time column. It is appears as a date field in the power app.  I want to filter my gallery by this date but face a problem. 
If there is something special between Filter function and dates ?
Filter (dataSource, 'Date Time Column' = Date(2020,3,18)) does not return any record to my gallery, but they are there. I took Date(2020,3,18) exactly to troubleshoot this case. In the same time I put a label on gallery template with this formula 
Text( ThisItem.'Date Time Column:' = Date(2020,3,18))  
and get true every where it was expected

thank you in advance

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

    Showing a sample from the date Column in your table Will help. Meanwhile try

    Filter (dataSource, 'Date Time Column' = "2020,3,18") 

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

    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.

  • laani Profile Picture
    13 on at

    Hi @eka24  The next screenshot is a drill down into  column with a date, interesting that sharepoint list set to keep "Date only", but in app there is  "time" part too
    Capture1.PNG

    The next screen is drill to composed Date value, I think my problem that I do not see difference but Filter() function does.

    Capture2.PNG

     

     

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Try

    Filter (dataSource, Text('Date Time Column',"dd-mm-yy") = "18-03-20") 

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

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard