cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Boneckrh19
Kudo Kingpin
Kudo Kingpin

Sudden delegation warning, SortByColumns and Sort

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.

1 REPLY 1
Boneckrh19
Kudo Kingpin
Kudo Kingpin

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.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,651)