Using Relative Date Filters in Datasets
Date filters allow you to control which records appear in your dataset based on date and time criteria. You can use either absolute dates (specific calendar dates) or relative dates (dynamic dates that update automatically) to filter your data.
Accessing the Date Filter Interface
- Open your dataset in the Dataset module
- Click on the Filters button in the toolbar
- Select the date field you want to filter on from the field list
- The date filter interface will appear with two tabs: Absolute Date and Relative Date. The Absolute Date tab is selected by default.
Using the Absolute Date Tab
The Absolute Date tab allows you to filter by specific calendar dates:
- The Absolute Date tab is active by default when you open the date filter interface
- Select a date range option from the dropdown (e.g., "is between", "is on", "is before", "is after")
- Use the date picker to select your specific date(s)
- Click Apply to activate the filter
Note: Absolute date filters remain fixed and do not update automatically over time.
Using the Relative Date Tab
The Relative Date tab provides dynamic filtering that automatically updates based on the current date:
- Click on the Relative Date tab
- You'll see options to configure your relative date filter
Using the Date Literal Dropdown
The Date Literal dropdown contains pre-defined time periods:
- Today - The current day
- Yesterday - The previous day
- Tomorrow - The next day
- This Week - The current week
- Last Week - The previous week
- Next Week - The upcoming week
- This Month - The current month
- Last Month - The previous month
- Next Month - The upcoming month
- This Quarter - The current quarter
- Last Quarter - The previous quarter
- Next Quarter - The upcoming quarter
- This Year - The current year
- Last Year - The previous year
- Next Year - The upcoming year
Simply select a date literal from the dropdown and click Apply.
Setting the N Value for Relative Dates
For more flexible filtering, you can specify a custom number (N) of time units:
- Select the time unit from the dropdown (Days, Weeks, Months, Quarters, or Years)
- Choose whether you want Last N, Next N, or Current and Last N
- Enter the number (N) in the input field. Note: The N value input field is disabled when a Date Literal that does not require an N value is selected (e.g., Today, Yesterday, This Month).
- Click Apply
Example: To filter for records from the last 90 days, select "Last N Days" and enter "90" in the N value field.
Common Use Cases
Last 30 Days
Use this to view recent activity:
- Select Relative Date tab
- Choose "Last N Days"
- Enter 30 as the N value
- Click Apply
Next Quarter
Use this for forward-looking planning:
- Select Relative Date tab
- Choose Next Quarter from the Date Literal dropdown
- Click Apply
Current Month to Date
View all records from the beginning of the current month until today:
- Select Relative Date tab
- Choose This Month from the Date Literal dropdown
- Click Apply
Last 12 Months
Analyze a full year of trailing data:
- Select Relative Date tab
- Choose "Last N Months"
- Enter 12 as the N value
- Click Apply
Yesterday
Review the previous day's records:
- Select Relative Date tab
- Choose Yesterday from the Date Literal dropdown
- Click Apply
Tip: Relative date filters are ideal for dashboards and reports that need to stay current without manual updates. The filter automatically recalculates based on the current date each time you view the dataset.