Have you ever questioned why the records appear to be missing or your Power Apps app struggles with big data sets? It might be related to delegation. It is important to grasp the implication of delegation when developing apps faster and reliably.
This blog will walk you through understanding the delegation mechanism, its importance, 500/2,000-row limit, allowed functions, and use cases. We will even provide details on identifying delegation warnings and the best way to apply best practices for app stability.
The process of delegation in Power Apps allows the backend data source to handle data filtering, sorting and searching. By doing so, it eliminates the need to transfer large amounts of data to the user’s device where the local processing will occur.
Delegation helps in speeding up what Canvas apps do and running queries correctly on large amounts of data.
Learn mobile app development with practical, instructor-led training and build skills to create user-friendly mobile applications.
Delegation in Power Apps means that Power Apps asks the data source to do the work instead of doing everything itself.
Imagine a company has 50,000 employee records stored in SharePoint. You want to find all employees who work in the Sales department.
Here is how delegation works:
This way, Power Apps does not need to download all 50,000 employee records to find the employees you need.
Also Explore: Power Apps Tutorial For Beginners
If Power Apps cannot send the request to SharePoint, it may download only a limited number of records and search through them itself.
For example, if the app retrieves only 500 records and the Sales employees are in the remaining records, it may miss those employees.
In simple words:
Delegation is like asking a librarian to find a particular book for you instead of searching through every book in the library yourself.
It helps Power Apps find the information you need more efficiently, especially when working with large amounts of data.
Understanding the difference between delegation and non-delegation helps you choose the right approach for handling data in Power Apps.
| Factor | Delegated query | Non-delegated query |
| Where processing happens | On the data source (server) | On the user's device |
| Records considered | The entire data source | Only the first 500 (up to 2,000) rows |
| Data transferred | Only matching results | Up to the row limit, then filtered locally |
| Risk of missing data | Low | High on large data sets |
| Warning in Studio | None | Blue dotted underline and warning triangle |
| Best for | Large and growing data | Small, stable data sets |
Rule of thumb: if your data source can ever grow past 2,000 records, treat delegation as non-negotiable.
The delegation limit, officially the Data row limit, controls how many records Power Apps pulls down when a query cannot be delegated.
A few things people often get wrong:
For example: Your SharePoint list has 3,000 rows. You run a non-delegable filter with the limit at 2,000. Power Apps looks at 2,000 rows and filters those. The other 1,000 rows might hold your answer, but the app never sees them.
Read Also: 7 Best Power Apps Examples
Whether a function is delegable depends on both the function and the data source. The table below shows common patterns. Always confirm against the official delegation list for your connector, since support keeps expanding.
| Category | Typically delegable (varies by source) | Typically NOT delegable |
| Filtering | Filter, LookUp | Filter with non-delegable conditions inside |
| Comparisons | =, <>, <, <=, >, >= and, Or, Not | Comparisons on calculated or transformed columns |
| Text matching | StartsWith | EndsWith, Left, Mid, Right, Len, Lower, Upper, Trim on a column |
| Searching | Search (Dataverse) | Search (SharePoint and many others) |
| Sorting | Sort, SortByColumns on a plain column | Sort on a calculated expression |
| Aggregates | Sum, Average, Min, Max, CountRows, CountIf (Dataverse, SQL Server) | Same functions on SharePoint, Excel and most others |
| Membership | in operator (Dataverse) | in operator (SharePoint) |
| Shaping data | Limited | GroupBy, AddColumns, Distinct, ForAll, FirstN and LastN in most cases |
Simple way to remember it: if the data source's own query language can do it natively, it can usually be delegated. If you are transforming values on the fly (changing case, trimming, slicing text), it usually cannot.
Not all data sources are equal. Here is the general picture:
| Data source | Delegation support | Notes |
| Dataverse | Strongest | Broadest set of delegable functions, including aggregates, in and Search |
| SQL Server | Strong | Good coverage for filters, sorting and aggregates; views help a lot |
| SharePoint | Moderate | Filter, Sort, LookUp and StartsWith work. No Search, in or aggregates. Mind the 5,000-item list view threshold too |
| Excel (OneDrive) | Very limited | Basically no delegation. Not recommended for growing data |
| Collections | None | Everything runs locally and collections are filled from capped queries |
| Custom connectors | Depends | Depends on how the connector is built |
If you're choosing a data source for a new app that will scale, Dataverse gives you the fewest delegation headaches. Many teams still use SharePoint for simplicity, which works well as long as you stick to its delegable patterns.
Related Article: What is Microsoft Power Automate?
Let's make this concrete. These examples use a SharePoint list called Orders with columns Title, Status and CustomerName.
| Filter(Orders, Status.Value = "Open") |
What it does: Sends the condition to SharePoint, which returns every open order in the list. Expected result: No warning. All open orders appear, even in a list of 50,000 rows.
| Filter(Orders, Lower(CustomerName) = "acme") |
What it does: Tries to lowercase every CustomerName before comparing. SharePoint can't do that in its query, so Power Apps has to do it locally. Expected result: Blue dotted underline. Only the first 500 (or 2,000) rows are checked. Matches beyond that are missed.
| Filter(Orders, StartsWith(CustomerName, "Acme")) |
What it does: StartsWith translates into SharePoint's query language and SharePoint text comparison isn't case-sensitive, so the Lower call isn't needed. Expected result: No warning. All customers starting with "Acme" are returned.
| Filter( Filter(Orders, Status.Value = "Open"), Len(Title) > 20 ) |
What it does: The inner Filter is delegated and shrinks the data. The outer one runs locally on the smaller result. Expected result: A warning still shows on the outer part. The result is correct only if the open orders stay under your data row limit. Use this pattern carefully.
| CountRows(Filter(Orders, Status.Value = "Open")) |
On Dataverse or SQL Server: delegated, so you get the true total. On SharePoint: not delegable. The count is capped at your row limit, so a list with 4,000 open orders could show 2,000.
Also Read: Power Apps vs Power Automate: A Comparison Guide
Heads up: Don't just turn off the warning or crank the row limit to 2,000 and call it done. The warning is telling you the truth.
Most delegation bugs don't show up in testing, because test data is small. Here's how to catch them early.
Also Explore: Types of Microsoft Power Apps
Learn mobile app development with practical, instructor-led training and build skills to create user-friendly mobile applications.
Power Apps delegation sounds technical, but the idea is simple: let the data source do the heavy lifting so your app sees all the data, not just the first few hundred rows.
Get it right and your apps stay fast, accurate and ready to scale. Ignore it and you risk wrong totals, missing records and users who stop trusting your app.
Want to go deeper? igmGuru's Power Apps training covers canvas apps, Power Fx, data sources and real-world app building, with hands-on practice so these issues never catch you off guard.
Delegation is when Power Apps sends filtering, sorting and searching operations to the data source instead of processing records on the user's device. It helps apps work efficiently with large datasets.
The data row limit for non-delegable queries is 500 records by default and can be increased to a maximum of 2,000. Delegable queries are not subject to this limit.
A blue underline indicates a delegation warning. It means part of your formula cannot be processed by the data source and will run locally on a limited number of records.
Yes, but support is limited. Functions such as Filter, Sort, LookUp and StartsWith are delegable for supported column types. However, Search, in and aggregate functions such as Sum are not delegable.
Dataverse generally offers the broadest delegation support, followed by SQL Server. The best choice depends on your app's data requirements, complexity and performance needs.