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 by Name my Galler...
Power Apps
Unanswered

Sort by Name my Gallery (LookUp Column Value)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, maybe is simple but I cannot resolve alone this situation cause i'm a beginner on PowerApps.

 

I try to sort by name my "Gallery1_1" who is taking the information from my sharepoint list "Grille des acquis_1". My gallery use two LookUp column for the name (Nom, Prénom) and the ID (N° Employé).

 

PS: sorry if my english is horrible, i'm french eheh...

 

THANK YOU FOR YOUR HELP!

Capture d’écran (77)_LI.jpg

Categories:
  • Suchitra1996 Profile Picture
    185 on at

    Hi @Anonymous 

     

    As per my understanding, I have done a testing on my end:

    The datasource is " Question" and i have sorted it by column "Question" you can do the same with your column "Name".

     

    Suchitra1996_0-1614359866248.png

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Unfortunately this does not work, it is written:

    Warning regarding delegation. The "Sort" part of this formula may not work well on large datasets.

    Capture d’écran (80)_LI.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have found a solution that works!

    Sort('Grille des acquis_1'; 'Nom, Prénom'.Value)


    On the other hand, the same warning message remains present.

  • Michael_Scott Profile Picture
    106 on at

    So a delegation warning/error pops up in PowerApps for a few reasons. If you use certain keywords such as "In" while using and if function or if you are trying to access calculated columns or other complex columns. For example a column in a SP list that is set to be calculated like this [LastName] & ", " & [FirstName] with always produce a delegation error. This is because PowerApps does not want to do this work and lookup itself so it 'delegates' it to SP to do and just waits on the values that SP sends back. My guess would be you are using one of these column types. Also if you use Sort function, I believe that you can only name a single column to sort by and you cant call any other functions in that call or it becomes a delegation. Here is a link that may explain it better than me.
    Understand delegation in a canvas app - Power Apps | Microsoft Docs

    Something I do for smaller lists that I get alot of delegation warnings on is make a quick local copy to read from. For example onVisible for that screen or on app load I will use a ClearCollect function and just copy either the entire list if its small enough or copy only what I want into that local list. This gives you a local copy that you can then pull data from without causing delegation warnings. If you are going to write back to the SP list you will have to remember to make sure you are writing to the correct item in SP and no the item in the local copy. If you have any other questions people on this forum rock and are super polite! Not need to apologize for poor English as most of us probably cant speak another language at all let alone as well as you do! Cheers!

    Btw check out Shane Young on YouTube as he is an amazing teacher.
    Shane Young - YouTube

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard