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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Load only the latest 5...
Power Apps
Answered

Load only the latest 500 records from a 3000 source from Sharepoint List to overcome the 2000 limit

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So I learned about the 2000 record limitation of Power Apps and Sharepoint List.

 

I have an app with a browse screen gallery with a search feature where I display active requests. Users can search for previous requests. Once a request is completed, usually, we don't need to modify it ever and rarely need to view very old requests again.

My thought is to "archive" old requests and only pull, say, the latest 500 records in the app. If users need to search for very old records they can go manually to the SharePoint list to look at it.

 

The most simple way to "archive" this would be to filter out ID numbers below a certain number. So say when I specify my data source, only pull IDs that are above ID 1500. I can create a new ID if I can't use the actual Sharepoint ID.

 

Is this possible? What would the easiest way to achieve this archival process for me with the option say in 5 years to add more items to the archive?

Categories:
  • Verified answer
    EdViegas Profile Picture
    436 on at

    You can try 

    LastN(
     SortByColumns(
     your_3000_records_list,
     "ID",
     Descending
     ),
     500
    )
  • simitu Profile Picture
    5 on at

    This worked great for me! Thank you

  • ATUFAILHAASAN Profile Picture
    72 on at

    @EdViegas I have a similar problem where my gallery filter is not showing the latest 500 in my gallery. 

    Where should i insert this function in order to show the latest 500 only? 

    ATUFAILHAASAN_0-1689013761920.png

     

  • gillespieseth Profile Picture
    2 on at

    Is it possible to add a search by TextSerchBox within this?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard