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 Apps
Answered

Delegation help

(0) ShareShare
ReportReport
Posted on by 391

Good day, 

I am working on cleaning up my app, it is all running really smoothly, however I notice I have quite a few delegation errors. I am trying to figure out how to get these fixed.

One example I have is a simple sort function for a sharepoint list (With only 1 column). In total there are only 10 items in this list, but it is showing this is non-delegable. How do I fix that? I see on learn.microsoft's page for delegation it says "In Sort, the formula can only be the name of a single column and can't include other operators or functions." however I am not sure how to tell a dropdown to look for just the column without also including the data source.. What am I doing wrong? Any help/useful links is welcome! Thanks 🙂

Sort('Cost Codes', CostCodesColumn,SortOrder.Ascending)

 

Categories:
  • WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    Hi @CodyO ,

    What type of column is CostCodesColumn ?

  • CodyO Profile Picture
    391 on at

    Hey @WarrenBelz, It is a single line of text column.

  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @CodyO 

     

    try to use a collection:

    ClearCollect(LocalCostCodes, 'Cost Codes')
    
    

     

    for sorting:

    Sort(LocalCostCodes, CostCodesColumn, SortOrder.Ascending)
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • CodyO Profile Picture
    391 on at

    That worked perfectly, I think I will start using collections more! Thank you @mmbr1606!

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @CodyO 

     

    great, can be a good way to work around a few things xD

  • WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    @CodyO ,

    Good to see you got it fixed - I am in a different time zone and just got to it, so I had not had a chance to answer.

  • CodyO Profile Picture
    391 on at

    @WarrenBelz, You have always been quick to assist me with my MANY powerapps questions. It is greatly appreciated! 

  • WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    Hi @CodyO ,

    No problems - happy to help.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard