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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegation warning whi...
Power Apps
Unanswered

Delegation warning while using a simple filter. SharePoint custom form.

(0) ShareShare
ReportReport
Posted on by 43

Hello friends, hope you´re doing great.

 

I made a custom form in SharePoint list with Power Apps. 

shuaces_0-1695915385389.png

 

Context:
Client Contact Person - A SharePoint list with only 54 rows.

Company Name - A Lookup column.


I have a vertical Gallery, and I have this formula on its Items

 

Filter('Client Contact Person','Company Name'.Id=ClientCompanyCombo.Selected.Id)

 

 

 

I keep getting this error:
"Delegation warning. The highlighted part of this formula might not work correctly with column "CompanyName.Id" on large data sets. The data source might not be able to process the formula and might return an incomplete data set. Your application might not return correct results or behave correctly if the data set is incomplete.

I clicked "Open monitor" hoping to get more insight as to why, because according to Microsoft, Filter () is a delegable function.

shuaces_2-1695917301200.png

shuaces_3-1695917404411.png

It is a small data set so I couldn't figure out why it won't delegate.

 

In a last-ditch attempt to understand/debug this, I simplified the formula even further:

 

Filter('Client Contact Person','Company Name'.Id = 1)

 

 

 

This is a snippet of the monitor:

 

 "data": {
 "context": {
 "entityName": "MemberTableItems",
 "propertyName": "Items",
 "id": 13335,
 "nodeId": 6,
 "diagnosticContext": {
 "span": {
 "start": 0,
 "end": 53
 },
 "dataOperation": {
 "protocol": "local",
 "operation": "filter",
 "dataSource": "Client Contact Person"
 },
 "formula": "Filter('Client Contact Person','Company Name'.Id = 1)"
 }
 },
 "info": "Formula not delegated. 54 rows scanned.",
 "helpUrl": "https://aka.ms/pamonitordelegation",
 "issue": "This function can be delegated but the selection formula used prevented the datasource from processing the query.It might not work correctly on large data sets and an incorrect result might be returned.The data row limit for non-delegable queries defined in the app settings is 500."
 }

 

 

 

It still won't delegate.

I really would appreciate any help or suggestion; I'm a newbie and I've been stuck with this problem for several days now.

Thank you in advance! 🫶

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @shuaces,

     

    Power Apps delegates the .Value of your LookUp column - which is the main column defined in your SharePoint LookUp. Should this be unique, then you can use this as your filter condition:

    Filter(
     'Client Contact Person',
     'Company Name'.Value = ClientCompanyCombo.Selected.Value
    )

     

    Whether or not Filter is delegable, is not only dependent on the type of function but also on the defined filter condition. Complex columns, calculations/functions within query conditions, certain operators may lead to delegation issues depending on the Datasource.

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • shuaces Profile Picture
    43 on at

    Thank you very much! It worked.! 😁

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard