web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / filter gallery by date
Power Apps
Answered

filter gallery by date

(0) ShareShare
ReportReport
Posted on by 407

Hi, have an app generated from a sharepoint list. In the gallery the items is set to,
SortByColumns(Filter([@JobRegister], StartsWith(Company, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

I have a date field named DOE and want the sort icon to show most recent date

The sort icons Onselect is set to UpdateContext({SortDescending1:true})

 

Categories:
  • Jagadeeshk Profile Picture
    457 on at

    Use DOE coulmn in place of title in sort function 

  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 ,

    As @Jagadeeshk suggested, if you want to sort by DOE column, you should use this column inside your Sort formula. So try to use this formula of your gallery:

    SortByColumns(Filter([@JobRegister], StartsWith(Company, TextSearchBox1.Text)), "DOE", If(SortDescending1, Descending, Ascending))

    Best regards,

    Allen

     

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 ,

    How are things going? Have you solved your issue?

    Best regards,

    Allen

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard