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
Super User

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

View solution in original post

3 REPLIES 3
Drrickryp
Super User
Super User

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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,410)