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 Microsoft Employee

My filter will not work properly, any Ideas?

Filter('[dbo].[Batch_Data]', Text(Batch_Schedul_Date, "mm/dd/yyyy") = Text(greenDate.SelectedDate, "mm/dd/yyyy"))

I recently switched from reading from a OneDrive File to an actual DB Table and the only thing I changed was the source.

 

 

 

 

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    Direct date filters do not work for SQL Server. However, you can create a calculated column that will work. For instance, ALTER TABLE myTable ADD DateAsInt AS (YEAR([date]) * 10000 + MONTH([date]) * 100 + DAY([date])) and then filter on the calculated number column.

    https://docs.microsoft.com/en-us/connectors/sql/

     

    I did a video on date column filter with sharepoint

    https://www.youtube.com/watch?v=eCMuXPI1Qok

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @RezaDorrani Thank you for the quick reply.  I found the error in my way.  I was trying to filter on the default property not the items property.  Once I read the error about expecting a record but received a table I knew something else was wrong.

     

    I appreciate the quick response.

     

    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

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard