Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

SharePoint List Date Filtering not working for previous years

We have sharepoint list with last 3 years data and powerapp was built to filter data based on date.


Datepicker control is used to pick required data and filtering data based on that.


I am able to fetch current year records (2017), but previous year (2016,2015), not getting all records. 


Did anyone faced this sort of issue?

Community Support
Community Support

Hi Narula_Srinivas,


Could you show me the code you are using on your side?

To test this issue, I create an app based on SharePoint list. In the list, I also have three years data, and the gallery is filtered by a Date picker control.

The filter function I am using on my side is:

It works fine, the gallery will be filtered based on the date I selected, no matter it is previous year or current year.



Please show me more details to help reproduce this issue on my side.


By the way, please post PowerApps related issues on PowerApps forum, the reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



Thanks for response. But I am loading filtered data  into collection and that collection is binided to gallery. Reason I have to filter data based on each business unit. So that I can avoid that roundtrips to server for each business unit. But below given formuale is not having any Business unit filtering, because with initial loading only  I am not getting all records based on date.




On button onSelect event, I am using below formula:

Collect(MainTemp,Filter(ActivityTemp,ActivityStartDate>= Date(Year(StartDatePicker.SelectedDate),Month(StartDatePicker.SelectedDate),Day(StartDatePicker.SelectedDate))))


Binding that MainTemp to Gallery.



BTW, do want me to post further this discussion in other forum or continue here?

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,728)