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 / Sort gallery by due date
Power Apps
Answered

Sort gallery by due date

(0) ShareShare
ReportReport
Posted on by 28

Hi! I'm new to power apps. I currently have a gallery I would like to sort by due date. The item property of this gallery is:

Search(Filter('business plan', 'Add to App'=!"F"), TextInputCanvas1.Value, "Title")

 

How can I have the gallery automatically sort based on due date? Due Date is in a mm/dd/yyyy format. 

Categories:
  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hi @Electrariley 

     

    1. I think you mean 'Add to App' != "F" not =!

    2. Do you want to Search the Sorted records, or Sort the Searched records?


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Electrariley Profile Picture
    28 on at

    Thanks. It was a typo. I would like to sort the Searched records. Appreciate any help. I'm struggling combining my filters with sort.

  • Verified answer
    Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hello @Electrariley 

     

    Here

    SortByColumns(Filter('business plan', 'Add to App' <> "F" && TextInputCanvas1.Value in "Title"), "ColumnNameHereToSortBy", SortOrder.Ascending)
    
    or SortOrder.Descending


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Electrariley Profile Picture
    28 on at

    So it sorted it correctly now, but the "F" statement isn't working. The 'add to app' is a boolean and I want to exclude anything marked False from the gallery. Any ideas?

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hi @Electrariley 

     

    yes.. lol next time explain it a boolean and dont type a "F" as if that means boolean in any language lol 😛 Come on you ran into that one 😛

     

    YourColumn = true or YourColumn = false


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Electrariley Profile Picture
    28 on at

    Actually I figured it out. Thanks so much. I just used =!"F" instead of <> "F" and it works. Thank you!

  • Electrariley Profile Picture
    28 on at

    @FLMike ok now my search textinputcanvas1 actually isn't working but there is also no errors. I just realized when I type in the text input it's no longer returning any values.

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    @Electrariley 

     

    Show me what you typed. You gave me the names etc so I typed based on what you told me. Its valid. Either you typed something wrong, or you data doesn't return anything.


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Electrariley Profile Picture
    28 on at

    @FLMike I probably did something wrong, but this is what I have right now and it is sorting correctly and the filter is working correctly, but the text input returns no values, but when I leave the textinput empty all the data I expect is there.

    SortByColumns(Filter('business plan','Add to App'=!"F" && TextInputCanvas1.Value in "Title"), "DueDate",SortOrder.Ascending)

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hi

     

    @Electrariley 

     

    Can you please take a screen shot of the details of that field in your List or Dataverse table?

     

    I'd like to see the data in it, and I would like to see its configuration details (showing me the data type etc)

    Please and thanks


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard