Create Relative Date Filters (2024)

Relative date filters dynamically update to show a time period relative to when you open the view, such as the current week, the year to date, or the past 10 days. Relative date filters make it easy to create views that always show the most recent data.

Step 1: Drag a date field to the filter shelf

Drag a date field from the Data pane to the Filters shelf. In the Filter Field dialog box, click Relative Date, and then click Next.

Create Relative Date Filters (1)

Step 2: Select a time unit

In the Filter dialog box, click Relative dates, and then select the unit of time for the filter. For example, to show only the last three weeks, select Weeks.

Create Relative Date Filters (2)

Step 3: Define the date period

Use the options in the lower part of the Filter dialog box to specify which date period to include in the view. For example, to show the last three weeks, click Last, and then enter the number 3.

Create Relative Date Filters (3)

The specific range of time that you have selected is displayed in the upper right of the Filter dialog box.

Create Relative Date Filters (4)

Note: “Last” date periods include the complete current unit of time, even if some dates haven't occurred yet. For example, if you select the last month and the current date is January 7th, Tableau will display dates for January 1st through January 31st.

Step 4: Watch the view update

The view will now update to always show the relative date range you've chosen.

Create Relative Date Filters (5)

Once created, you can showrelative date filters in the view as cards. See Display interactive filters in the view. To confirm the specific date range, users can click the menu on the filter card:

Create Relative Date Filters (6)

Create Relative Date Filters (2024)

FAQs

What is a relative date filter? ›

Relative date filters dynamically update to show a time period relative to when you open the view, such as the current week, the year to date, or the past 10 days. Relative date filters make it easy to create views that always show the most recent data.

Why is date filter not working in Excel? ›

One common reason is that not all the data in the date column are in the proper date format. It may look like a date, but it could actually be in text format. Another reason could be that the group dates option in the auto filter menu is disabled.

How do I create a date level selector in tableau? ›

Step 1: Create a parameter to use as the date level selector
  1. Select Dimension drop-down, and then select Create Parameter.
  2. In the Create Parameter dialog box, do the following: Give the parameter a name. ...
  3. In the Data window, right-click Date Level Selector and choose Show Parameter Control.
Jul 20, 2023

How do I Create a date filter parameter in Tableau? ›

Creating a Filter for Start and End Dates Using Parameters
  1. In the left-hand data pane, click the drop-down arrow at the top right of Dimensions, and then select Create > Parameter.
  2. In the Create Parameter dialog box, name the parameter. ...
  3. Under Data Type, select Date.
  4. Under Allowable values, select Range.
Nov 27, 2023

How do I Create a dynamic date parameter in Tableau? ›

Demo
  1. Step 1: Create a Calculated field to get the latest Order Date. ...
  2. Step 2: Create a Parameter and configure it as per below. ...
  3. Step 3: Create a Calculated field to configure the parameter.
  4. Step 4: Move the Order Date Selector calculated field to the Filters tab, and select 'True'
Dec 28, 2020

What does a relative date indicate? ›

Relative dating is the science of determining the relative order of past events (i.e., the age of an object in comparison to another), without necessarily determining their absolute age (i.e., estimated age).

What is the meaning of relative date? ›

In relative dating, we determine which things are older or younger based on their relationships. For example, we know from geology that soil layers near the surface of the ground are usually younger than those deeper down.

What does use relative dates mean? ›

A relative date range is a period of time in relationship to a specified date. Within Financial Reports and the Project Financial Statements, you can use a relative range to define columns based on a particular period or fiscal year, ahead or behind a specific column.

What is use relative dates on Mac? ›

Similarly, the Relative date format allows you to choose from helpful options such as Yesterday, Today, and Tomorrow. These options are relative to the current date and time when you run the shortcut.

Top Articles
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 5611

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.