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 / Unable to filter a Sha...
Power Apps
Answered

Unable to filter a SharePoint list's Created date based on a Date Picker

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1

I have this formula inside the Gallery items property to filter a SharePoint list using a date picker:-

 

(Filter('Work Orders',
(Created = colSelectedDate Or IsBlank(colSelectedDate))

 

and when the user click on the Search button, i am assigning this value to the local variable:-

 

UpdateContext({colSelectedDate: DashBoardDatePicker.SelectedDate});

 

but the filter will not return any result. i have these setting for the Date Picker i am using for the search & filter:-

 

johnjohnPter_0-1701959660947.png

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    Created is both a date and a time. To filter on that you need to use >= and <= to specify the time range. = won't work because the time component won't match.

  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at

    @Pstork1 But how I can define the date rang this did not work:-

     

    SortByColumns(Filter('Work Orders',
    ((Created >= colSelectedDate And Created <= colSelectedDate) Or IsBlank(colSelectedDate))
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    You need to use the DataAdd() function to add or subtract 1 day from colSelectedDate for one of the evaluations.

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 739 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 268

Last 30 days Overall leaderboard