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

Sort the date on gallery

Dear All,

Related to question on https://powerusers.microsoft.com/t5/Building-Power-Apps/Filter-by-user-then-search-by-date/m-p/85025...

 

Gallery item became Filter(SharepointListname,Title=currentuser,Month=Dropdown1.Selected.Result) but when I tried to update the date on  the form with SubmitForm(Form1) the date on gallery view not sorted, How I make gallery date still sorted after updated the record?

 

Thank you

Regards

Yefz

Capture3.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

Sort(Filter(SharepointListname,Title=currentuser,Month=Dropdown1.Selected.Result), Date) 

View solution in original post

3 REPLIES 3
Drrickryp
Super User II
Super User II

Sort(Filter(SharepointListname,Title=currentuser,Month=Dropdown1.Selected.Result), Date) 

View solution in original post

It is working great Thank You @Drrickryp 

If I want to add ascending-descending  button, how to the code will be?

I find solution on https://powerusers.microsoft.com/t5/Building-Power-Apps/Sort-Ascending-Decending/m-p/5745#M2598

 

Now my gallery item  became Sort(Filter(SharepointListname,Title=currentuser,Month=Dropdown1.Selected.Result),WorkDate,If(sortDescending,Descending,Ascending))

and on Asc-Desc button onSelect =UpdateContext({sortDescending:!sortDescending})

Helpful resources

Announcements
PA 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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

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

Top Solution Authors
Top Kudoed Authors
Users online (50,718)