How to create a quick-filter slider that filters the view based on a date relative to today’s date.
The following steps use the view and data source included in the sample Tableau workbook, RelativeDateFilter_2023.twbx, found in the Attachments section of this article. Download the workbook to follow along with the steps.
DATEDIFF('month',<date>,Today())
Where <date> is the name of the date field you want to use in the filter.
Using the slider, you can specify the number of months to display in the view, between today and the <date> field.
Tip: You can edit the title of the quick filter to make it more intuitive for your viewers. For example, change it to Months from Today.
001466275
345 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.