cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

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

v-monli-msft
Community Support
Community Support

Hi @Anonymous ,

 

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.
Anonymous
Not applicable

Today, I will test and inform you again.

Anonymous
Not applicable

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

 

5.PNG

Hi @Anonymous ,

 

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,344)