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 lowest...
Power Apps
Answered

Sort Gallery by lowest number first

(0) ShareShare
ReportReport
Posted on by 297

Good morning all,

 

I should now how to do this but I just can't quite get it working. So my current formula filters my list to show items only created by others, I want the gallery to then be sorted by invoice number, the lowest invoice number being at the top the highest at the bottom. Please can someone suggest what I need to add.

 

 

Filter(
 'My List',
 !('Created by'=User().FullName))

 

 

Thanks,

 

Edd

Categories:
  • Verified answer
    Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Edd-Keogh ,

     

    You can try the following code:

    SortByColumns(
     Filter(
     'My List',
     !('Created by'=User().FullName)
     ),
     "InvoiceNumber",
     SortOrder.Ascending
    )
    
    //Replace InvoiceNumber with the ColumnName including the quotes
    
    Another way is
    
    Sort(
     Filter(
     'My List',
     !('Created by'=User().FullName)
     ),
     ColumnName,
     SortOrder.Ascending
    )
    
    //Here, quotes aren't needed

     

    Hope this syntax helps

  • Edd-Keogh Profile Picture
    297 on at

    @Ethan_R 

     

    Yes perfect, top one worked many thanks.

  • Edd-Keogh Profile Picture
    297 on at

    @Ethan_R would it be possible to add a second filter into this to only include if invoice approved column is blank?

  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Yes @Edd-Keogh ,

     

    You can add multiple filters so as you mentioned:

    SortByColumns(
     Filter(
     'My List',
     !('Created by'=User().FullName) &&
     (IsBlank(ApprovedColumn) || ApprovedColumn = Blank())
     ),
     "InvoiceNumber",
     SortOrder.Ascending
    )

     

    Hope this helps

  • Edd-Keogh Profile Picture
    297 on at
    Perfect thank you again

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard