logo
search
SharePoint Document Issues

How to Create a SharePoint Library View for Files Modified in the Last 30 Days

Kushani NimanthikaKushani Nimanthika Oct 16, 2026 869 views

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.

How to Create a SharePoint Library View for Files Modified in the Last 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.
Before you start

Ensure you have at least Edit or Full Control permissions for the target SharePoint site to create, modify, and save public library views.

Solution 1Recommended

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.

1
Access Library Settings

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.

2
Initiate View Creation

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.

3
Configure the Dynamic Filter

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.

4
Save and Apply

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.

Create a Dynamic Date-Based Filter View
Handling Large Document Libraries: If your library contains more than 5,000 documents, ensure the 'Modified' column is indexed under 'Library settings' > 'Indexed columns' before creating this view, otherwise you may encounter a List View Threshold error.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Office formats (DOCX, XLSX, PPTX) synced or downloaded from SharePoint.Lightweight application size ensures fast startup times and smooth document editing.Includes Writer, Spreadsheet, Presentation, and a robust PDF editor all within a single tabbed workspace.Familiar ribbon interface allows for zero learning curve when switching from Microsoft Office.
microsoft office alternative - wps 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.