cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User
Dual Super User

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

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

Highlighted
Community Support
Community Support

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

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.
Highlighted
Frequent Visitor

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

Today, I will test and inform you again.

Highlighted
Frequent Visitor

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

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

 

5.PNG

Highlighted
Community Support
Community Support

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

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
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,878)