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 / How do I show the most...
Power Apps
Unanswered

How do I show the most recent 500 entries in my SharePoint list?

(0) ShareShare
ReportReport
Posted on by

I have a SharePoint list with around 700 entries. When I set the row limit to 2000 it displays my items in my gallery in descending order which is what I want, however when I change the row limit to 500, it does not show the most recent 500 entries.

 

See below my code. "Pages" is my datasource and I want all of the entries in this to be shown in descending order.

 

 

SortByColumns(
Filter(
Pages,
TextSearchBox1.Text in Text(Title),
FilterByDate.SelectedDate<=ArticleStartDate),
"ArticleStartDate",
Descending)

 

 

 

 

Categories:
I have the same question (0)
  • bdodu Profile Picture
    399 on at

    Please try it now like this:

     

    SortByColumns( 
     FirstN(
     Filter(
     Pages,
     TextSearchBox1.Text in Text(Title),
     FilterByDate.SelectedDate<=ArticleStartDate
     ), 500
     )
     "ArticleStartDate",
     Descending
    )
  • Community Power Platform Member Profile Picture
    on at

    Hi @bdodu

     

    Thanks for your reply. Unfortunately this is not working. It isn't throwing back any errors but it doesn't give the correct data.

  • bdodu Profile Picture
    399 on at

     

    Not even if you place the First command in front?

     

    FirstN(
     SortByColumns(
     Filter(
     Pages,
     TextSearchBox1.Text in Text(Title),
     FilterByDate.SelectedDate<=ArticleStartDate
     ),
     "ArticleStartDate",
     Descending)
    ,500)
  • Community Power Platform Member Profile Picture
    on at

    Unfortunately this is still not working and is not showing me the most up to date data

  • bdodu Profile Picture
    399 on at

    ok, i will replicate it now in the test environment and I'll be coming back to you

  • bdodu Profile Picture
    399 on at

    Meanwhile - what datasource are you using? is it a database or sharepoint?

  • Community Power Platform Member Profile Picture
    on at

    Thank you for your help. I am using a SharePoint list

  • bdodu Profile Picture
    399 on at

    what do you mean by incorect data? do you get the 500 records but not in the proper order or what do you mean by incorect?

    Is the limit you set to 500 the experimental feature for non-delegable datasources ?

  • Community Power Platform Member Profile Picture
    on at

    Yes it is bringing records back, but it doesn't look like it is the most recent 500 records.

     

    I have set the limit to 500 in the experimental features

  • bdodu Profile Picture
    399 on at

    I've set the limit to 4 for non-delegable and due to the date comparison in sharepoint which is not delegable the number of rows returned was 4.

    The first formula i've provided works perfectly.

    Therefore you have a different problem.

     

    in some cases I saw that datepicker control is not correctly getting the selected date, please place a label on the form and give it the text property Text(<your_datepicker>.SelectedDate,"mm/dd/yyyy") and see the result 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard