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 / Delegation warning whe...
Power Apps
Answered

Delegation warning when sorting dataverse table.

(0) ShareShare
ReportReport
Posted on by 31

I got a gallery where I'm trying to sort a dataverse table based on a variable that holds the column name as a text.
This has worked across multiple apps/tables so far but in one specific table only i'm getting a delegation warning.
Ideally this is what i should have:

MuFeR_0-1683538240141.png

Even a more simplified version gives a delegation warning:

MuFeR_1-1683538279413.png

Meanwhile other tables even with AddColumns/Searching and extra stuff work just fine in every case:

MuFeR_2-1683538346439.png

I really can't figure out what's different for the table "Invoices" that creates the warning.

 



Categories:
I have the same question (0)
  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    When you use add columns it will create a local collection with 2000 itens or less, that's why you don't receive the delegation warning.

     

    And as far as I know the only way to do that without get the delegation warning is creating a condition to check which column you are sorting and hardcode the columns, like this:

     

    Switch(varSortByField,
     "Column1", Sort(Invoices,Column1),
     "Column2", Sort(Invoices,Column2),
     "Column3", Sort(Invoices,Column3),
    //......
     Sort(Invoices,ColumnDefault) // Default
     
    )

     

     

    I hope it helps 🙂

  • MuFeR Profile Picture
    31 on at

    Hello,

    Indeed that seems to be the case. So that actually means that I'm sorting the first 2000 filtered items and not the whole table?

  • victorcp Profile Picture
    2,350 Moderator on at

    Yes 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard