cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Narula_Srinivas
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?

2 REPLIES 2
v-yamao-msft
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:
Filter(List2,Date<=DatePicker1.SelectedDate)


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

3.PNG

 

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.

Hi,

 

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.

 

Capture.JPG

 

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

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (18,412)