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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sudden delegation warn...
Power Apps
Unanswered

Sudden delegation warning, SortByColumns and Sort

(3) ShareShare
ReportReport
Posted on by 415

My app did not have these delegation warnings for the versions using powerapps release 3.20092.39, but today the powerapps release is 3.20093.27 and it seems to have caused a new problem. This is happening in multiple applications.
On the code below I get:
"Delegation warning. The "SortByColumns" part of this formula might not work correctly on large data sets as its direct inner function blocks the delegation of all upper-level functions."

 

 

SortByColumns(
Distinct(
 If(
 !IsBlank(_filterUser) && !IsBlank(_filterApp) && !IsBlank(_filterLocation) && !IsBlank(_filterArea),
 Blank(),

 !IsBlank(_filterApp) && !IsBlank(_filterLocation) && !IsBlank(_filterArea),
 Filter(
 IC_UserSecurities,
 'Security App'.'App Name' = _filterApp,
 'Security Location'.'Location Name' = _filterLocation,
 'Security Area'.'Area Name' = _filterArea
 ),

 !IsBlank(_filterLocation) && !IsBlank(_filterArea),
 Filter(
 IC_UserSecurities,
 'Security Location'.'Location Name' = _filterLocation,
 'Security Area'.'Area Name' = _filterArea
 ),

 !IsBlank(_filterApp),
 Filter(
 IC_UserSecurities,
 'Security App'.'App Name' = _filterApp
 ),

 //default
 IC_UserSecurities 
 ), 
 'Security User'.'Full Name'
), "Result", Ascending)

 

This code is in a combobox Items property. It worked perfectly yesterday.

Categories:
I have the same question (0)
  • RBoneck Profile Picture
    415 on at
    Re: Sudden delegation warning, SortByColumns and Sort

    It appears that powerapps may be having an issue actually detecting all delegation issues in complex formulas. I would recommend going into settings and temporarily changing your delegation limit to 1, so that you can see everywhere that will be a problem regardless of how many records you have in the table or where the warnings say the delegation problems are.

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard