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 / Non-delagable--First 5...
Power Apps
Answered

Non-delagable--First 500/2000? Last 500/2000? Or unknown?

(1) ShareShare
ReportReport
Posted on by 55
When running a non-delegable function in PowerApps, we know that the function will only work on 500 (up to 2000) records. 
The question is does the function get to work on the first or last 500/2000 rows?  Or is this a complete unknown?  Or perhaps there is a way to write into the expression to use the first or last rows?
 
I imagine that the later records in a table are those that are the most recently entered/created, but if that is wrong please correct me.
 
Thank you.
Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at
    Hi,

    When a query is non-delegable, Power Apps only gets the first 500 records from the data source and then perform the actions in the query.
    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/delegation-overview
     
    To ensure that you are working with the most recent records, you can sort your data before applying the non-delegable function. For example, you can use the Sort or SortByColumns functions to sort your data in descending order based on a timestamp or ID column, ensuring that the most recent records are at the top.
    Sort(IceCream, CreatedDate, SortOrder.Descending)
     
     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard