cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dipak_Shaw
Helper I
Helper I

Can I use number column in sort by columns function?

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Dipak_Shaw
Helper I
Helper I

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

View solution in original post

5 REPLIES 5
eka24
Super User
Super User

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.

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
Resolver II
Resolver II

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
Super User
Super User

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.

Dipak_Shaw
Helper I
Helper I

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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,760)