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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (65,573)