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

Filter Gallery By Date

(0) ShareShare
ReportReport
Posted on by

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:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 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
    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

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