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 / Display Modified Share...
Power Apps
Answered

Display Modified SharePoint Files in Gallery

(0) ShareShare
ReportReport
Posted on by 299

Hello All,
I'm creating a Gallery that will display a SharePoint document library subfolder and the files that have been modified within the past 7-days. I was able to display the files in the subfolder with this formula:

 

Filter(Documents, IsFolder = false && StartsWith('Folder path', "Shared Documents/Estimating")

 

However, I'm not sure what formula to add to display the modified files. I've tried the following and the gallery is blank and nothing is displayed. Your help is sincerely appreciated!

 

Filter(Documents, IsFolder = false && StartsWith('Folder path', "Shared Documents/Estimating"), Modified >= DateAdd(Today(), -7, Days))

OR

Filter(Documents, IsFolder = false && StartsWith('Folder path', "Shared Documents/Estimating") || (Modified > DateAdd(Today(),-7,Days)))

EstimatingGal1.png
EstimatingGal2.png
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,293 Most Valuable Professional on at

    Hi @PVLove ,

    Apart from none of that being Delegable (so it will not work as your Library grows, this should work

    Filter(
     Documents, 
     !IsFolder && 
     StartsWith(
     'Folder path', 
     "Shared Documents/Estimating"
     ) && 
     Modified >= DateAdd(
     Today(), 
     -7, 
     Days
     )
    )

    however you could try this

    With(
     {
     wLib:
     Sort(
     Documents,
     Modified,
     Descending
     )
     },
     Filter(
     wLib, 
     !IsFolder && 
     StartsWith(
     'Folder path', 
     "Shared Documents/Estimating"
     ) && 
     Modified >= DateAdd(
     Today(), 
     -7, 
     Days
     )
     )
    )

    which would use the newest 500-2000 (depending on your settings) in the filter at the bottom. You would also not get any Delegation warnings.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • PVLove Profile Picture
    299 on at

    @WarrenBelz, thank you so very much.  The second formula worked like a charm!

    Patti

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard