cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

SP View threshold- how to view most recent

Hi all, 

I have a list that is hitting capacity due to the SP list being too long, I am ok with it only showing 500 items, but it has to be the most recent items. Can you tell me what I should add to my expression in order to achieve this?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: SP View threshold- how to view most recent

@TorreyFalconer
Good to hear you’ve already done that stuff. Getting the last 500 rows won’t be a problem at all 🙂

Use this code. It will work because SORT can be delegated.

FirstN(Sort(your_datasource_name, ID, Descending),500)

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: SP View threshold- how to view most recent

@TorreyFalconer 

You are likely encountering what's called the "delegation limit".  It happens when you use certain functions or data types (see link below) and limits the viewable rows to 500.

 

The simplest way around this is you can increase the delegation row limit to 2000 rows by going the menu:  File > Advanced Settings > Delegation Row Limit.

 

Another option is to write the formula including only functions that can be delegated.  Either way is fine.

 

More info on delegation:

https://powerapps.microsoft.com/en-us/blog/sharepoint-delegation-improvements/

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Helper III
Helper III

Re: SP View threshold- how to view most recent

@mdevaney sorry that really didn't answer my question. I actually did that part, I just need help with how to have it populate the last 500 items in the SP list rather than the first.

Highlighted
Super User III
Super User III

Re: SP View threshold- how to view most recent

@TorreyFalconer
Good to hear you’ve already done that stuff. Getting the last 500 rows won’t be a problem at all 🙂

Use this code. It will work because SORT can be delegated.

FirstN(Sort(your_datasource_name, ID, Descending),500)

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,888)