cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

How to sort data in gallery by dropdown list data and datepicker

Now I sort data in gallery by "MaterialTitle" [singer line text] 

I need to sort data by date range between Effective date and Valid date.

I add 2 datepicker on app [ start and end of range date] 

How I create the code.??

 

I type to mix Filter(InternalMemoRegister,DateValue(Text(Effect Date),"en")>=(DateValue(Text(DatePicker1.SelectedDate),"en")&& DateValue(Text(Valid Date),"en")<=DateValue(Text(DatePicker2.SelectedDate),"en")) with the current code, but it not work. T^T

 

I set column type of Effective date and Valid date in SP as Date and Time.

 

4.PNG

5 REPLIES 5
Dual Super User II
Dual Super User II

Hi @supanssa 

 

Check this vlog

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

Community Support
Community Support

Hi @supanssa ,

 

Try with below formula instead:

SortByColumns(Filter(InternalMemoRegister,StartsWith(MaterialTitle,Dropdown2.Selected.Value),DateValue(Text(Effect Date),"en")>=(DateValue(Text(DatePicker1.SelectedDate),"en")&& DateValue(Text(Valid Date),"en")<=DateValue(Text(DatePicker2.SelectedDate),"en")),"MaterialTitle",If(SortDescending1,Descending,Ascending))

Regards,

Mona

 

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

Today, I will test and inform you again.

It still error, I test change Dropdown 2 to .value and .Result, It still aboth error.

 

5.PNG

Hi @supanssa ,

 

Please copy and paste the whole formula here.

 

Regards,

Mona

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,546)