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 / Can I use number colum...
Power Apps
Answered

Can I use number column in sort by columns function?

(0) ShareShare
ReportReport
Posted on by 108

I want sort the sharepoint items according to my number column's number. I am using this column to sort items in powerapps gallery but items are not showing. Don't know why.

Please help.

Categories:
  • eka24 Profile Picture
    20,925 on at

    Yes you can use number column. can you show the Items property of the Gallery to indicate the formula?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Dipak_Shaw Profile Picture
    108 on at
    IDTitleTypeSortOrder
    1TestPersonal2
    2JohnProfessional1
    3TonyPersonal3
    4RobertPersonal1
    5TomProfessional2

     

    I have to galleries to show 2 types and the function I am using is

    SortByColumns(Filter(Table1,Type="Personal"),"SortOrder",Ascending)
    SortByColumns(Filter(Table1,Type="Professional"),"SortOrder",Ascending)
  • Abhilash_Swain Profile Picture
    901 on at

    Hi @Dipak_Shaw ,

    Yes, You can.

    Let's say there is an Employee table with Salary details. To show the gallery by sorting the highest salary on top it will be. 

    Use a sorting button to toggle ascending and descending. In button "On Select" = UpdateContext({Sorttype:!Sorttype}).

    Then In Gallery

    galerry Items = SortByColumns(Employee, "Salary", If(Sorttype, Descending, Ascending)).

     

    Please give a thumbs up if I answered to your question and mark it as a solution if it resolve your query.

    Thanks

    Abhi

     

  • eka24 Profile Picture
    20,925 on at

    Use 
    Sort(Filter(Table1,Type="Personal"),SortOrder,Ascending)

    Also try this if data would show up:

    Sort(Filter(Table1,Type="Personal"),ID,Ascending)

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    Dipak_Shaw Profile Picture
    108 on at

    I had to use show columns functions inside the filter function.

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