cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Narula_Srinivas
Level: Powered On

Filter SharePoint list date column using date picker

Hi Friends......I am trying to build an app with sharepoint list as datasource with some one filter. I have gone through most of the posts in this forum and tried below queries but no luck in getting right results.

 

Data Source Name : 'Session Booking'

SharePoint List Date Column name : SessionStartDate

 

Filter('Session Booking', SessionStartDate>=Today())
Filter('Session Booking', SessionStartDate>=DatePicker2.SelectedDate)
Filter('Session Booking', SessionStartDate>=Text(DatePicker1.SelectedDate, "[$-en-US]dd/mm/yyyy"))
SortByColumns(Filter('Session Booking', SessionStartDate>=Today()),"SessionStartDate",If(SortDescending1, Descending, Ascending))

 

Need your help in finding right formula to get results.

 

Advance Thanks!!

1 ACCEPTED SOLUTION

Accepted Solutions
Narula_Srinivas
Level: Powered On

Re: Filter SharePoint list date column using date picker

After spending more than a day...I could able to filter sharepoint list date column with powerapp datepicker.

 

Instead of passing DatePicker2.SelectedDate directly to sharepoint date column. We need to pass Year,Month & Day seperately as shown below.

 

 

ActivityStartDate<=Date(Year(DatePicker2.SelectedDate),Month(DatePicker2.SelectedDate),Day(DatePicker2.SelectedDate))

 

 

Hope this helps someone.

 

Happy Coding!!

 

3 REPLIES 3
Narula_Srinivas
Level: Powered On

Re: Filter SharePoint list date column using date picker

After spending more than a day...I could able to filter sharepoint list date column with powerapp datepicker.

 

Instead of passing DatePicker2.SelectedDate directly to sharepoint date column. We need to pass Year,Month & Day seperately as shown below.

 

 

ActivityStartDate<=Date(Year(DatePicker2.SelectedDate),Month(DatePicker2.SelectedDate),Day(DatePicker2.SelectedDate))

 

 

Hope this helps someone.

 

Happy Coding!!

 

YatinP
Level: Power Up

Re: Filter SharePoint list date column using date picker

Thanks but did not work for me. Is is specific to Region?

Narula_Srinivas
Level: Powered On

Re: Filter SharePoint list date column using date picker

not sure. I am using UK region.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 347 members 5,296 guests
Please welcome our newest community members: