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 / Filter powerapp data f...
Power Apps
Unanswered

Filter powerapp data from sharepoint list by created by date

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'd like to display a gallery in Powerapps based on any items added in the last 7 days.

I'm trying to use a filter

Something like this

 

Filter([@'Making a Difference Awards'], "Created">= -7,Descending)

 

I need help knowing how to get the last 7 days from the list.

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    You can use the DATEADD function to subtract 7 days from the current date.  See my code below.

     

    Filter([@'Making a Difference Awards'], Created>= DateAdd(Today(),-7,Days),Descending)

     

    Link to MS Docs for DATEADD

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff#:~:targetText=The%20DateAdd%20function%20adds%20a,by%20specifying%20a%20negative%20value.

     

    ---
    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."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your help.

    I'm getting a delegation warning using this code.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Yeah... dates do not yet have the ability to be delegated in SharePoint.

    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."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So are you saying I can't do what I'm hoping to do ... yet?

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Date delegation is coming (supposedly).  We have to find workarounds in the meantime...

     

    If your number of results are not expected to exceed the delegation limit of 2,000 you could use this code instead.  There will be delegation warnings but you can safely ignore them.

    Filter(
     Sort(
     [@'Making a Difference Awards'],
     Created,
     Descending
     ),
     Created>= DateAdd(Today(),-7,Days)
    )

     

     

    ---
    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."

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Did I answer your question here?

     

    ---
    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."

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard