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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to edit Sort funct...
Power Apps
Unanswered

How to edit Sort function on simple Excel app

(0) ShareShare
ReportReport
Posted on by 46

I am very new to Powerapps and still trying to figure out some basic functions.

 

I generated an app from an excel table, and with the sort button, the formula says: UpdateContext({SortDescending1: !SortDescending1}). But it doesn't say what it is sorting by. Does anyone know how to change this to where I can select what column/data variable it is sorted by instead of the default. 

Categories:
I have the same question (0)
  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @AEngleking ,

     

    Check the below:

    1. Ensure that SortDescending1 added on the Item of the gallery where you are listing the Excel items.
    2. The items formula on the gallery should be as below:

     

    Sort(excelTableName,SortDescending1)

     


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @AEngleking ,

    You have to state what is being sorted - what is the whole code?

  • AEngleking Profile Picture
    46 on at

    I'm not sure what that means. That's exactly what I am trying to figure out. Again, I am very new. What do you mean by code?

  • AEngleking Profile Picture
    46 on at

    Again, I am very new to PA. Could you explain this a little more clear please. Thanks.

  • AEngleking Profile Picture
    46 on at

    Again, I am very new to PA. Could you explain this a little more clear please. Thanks.

  • KrishnaV Profile Picture
    5,023 on at

    Hi @AEngleking ,

     

    Since you are really new to PA.  Try this:

    1. Select the gallery you see all the records on the screen. 
    2. Select the Items property of the gallery
    3. Share us the formula to help you better to fix your issue.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • AEngleking Profile Picture
    46 on at

    Ok. I see where you were talking about. I think I've got it figured out now. Thank you for your help. 

  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @AEngleking ,

     

    Since your issues is resolved would you mind to mark the relevant reply as mark as solution so that the new members of the community will make use of it.

     


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard