How to Create a SharePoint Library View for Files Modified in the Last 30 Days
Question details
The user needs to set up a SharePoint document library view that automatically displays only the files that have been updated in the preceding 30 days.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Managing document versions and tracking recent updates in a shared library without manually applying date filters every day.
- Observed behavior
- A customized view must be configured using dynamic date filtering to automatically restrict visible items to those modified within a rolling 30-day window.
Ensure you have at least Edit or Full Control permissions for the target SharePoint site to create, modify, and save public library views.
Create a Dynamic Date-Based Filter View
Set up a customized library view using the dynamic [Today] function to automatically filter for files updated within the last 30 days.
SharePoint allows you to use dynamic variables like [Today] in list and library filters. By subtracting days from this variable, you can create rolling date ranges that update automatically every day without manual intervention.
Navigate to the target SharePoint document library. Click the Settings (gear) icon in the top right corner of the page, select 'Library settings', and then click 'More library settings' if prompted.
Scroll to the very bottom of the library settings page to locate the 'Views' section. Click 'Create view' and choose 'Standard View', or alternatively, click on an existing view to modify it.
Name your view if creating a new one. Scroll down to the 'Filter' section. Select the radio button for 'Show items only when the following is true'. In the first column dropdown, select 'Modified'. In the operator dropdown, select 'is greater than or equal to'. Finally, type '[Today]-30' (without quotes) into the value field.
Scroll to the top or bottom of the page and click 'OK' to save your new view. If you want this to be the default interface for all team members, ensure you check the box labeled 'Make this the default view' before saving.

Edit Downloaded SharePoint Documents Seamlessly with WPS Office
While SharePoint manages your team's files online, you need a fast and reliable office suite to open, edit, and review those downloaded documents locally. WPS Office is a comprehensive, lightweight, and totally free alternative to Microsoft Office.

Frequently Asked Questions
Can I use this same method to filter for files created in the last 30 days?
Yes. Follow the exact same view creation steps, but in the Filter settings section, select the 'Created' column instead of the 'Modified' column, and set the value to '[Today]-30'.
Why does my dynamic filter show an error saying the value is not supported?
Ensure that you have typed the variable exactly as [Today] with square brackets and no spaces. The system will not recognize standard parentheses like (Today) or misspelled tags.
How do I filter between two specific dynamic dates, like between 30 and 60 days ago?
In the Filter section, you can use the 'AND' operator to combine two rules. Set the first rule to 'Modified is less than or equal to [Today]-30', select 'AND', then set the second rule to 'Modified is greater than or equal to [Today]-60'.
Will this filtered view delete the files that are older than 30 days?
No. Creating a custom view only hides the older items from your current display to help organize your workspace. The older files remain safely stored in the SharePoint document library.




