cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trishmalloy
Level: Powered On

Gallery formula to display dates descending

 

 

Hello,

 

Here is my current formula for the Gallery, how can I set the dates to display in most recent item on the top of the list?

CP and LoW Gallery formula to display date.PNG

1 REPLY 1
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: Gallery formula to display dates descending

You can use the SortByColumns function in the Items property of your gallery combined with the existing Filter expression:

SortByColumns(
    Filter(
        'Client Workout',
        Client_x0020_Name.Value = Gallery2.Selected.'Client Name'),
    "NameOfYourDateColumn",
    Descending)

Hope this helps! 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,765)