Skip to main content

What it does

This component allows you to create a date picker input which your users can use to filter data. The data picker can be a single date, or a date range. When the element is added to the dashboard, it looks like:

Single Date

Date Range

Configuration

Single Date

Single Date Basic Configuration

Date Range

Date Range Basic Configuration

Customizable Date Range Presets

If the pre-defined date ranges are insufficient (e.g. Today, Yesterday, Last 7 Days, etc.), you can create custom date range presets. Date range presets appear in the dropdown alongside the pre-defined date ranges.

Usage

Configuration for Start Date / End Date:
  • Now - Today’s Date
  • Plus - Add to today’s date (for future dates)
  • Minus - Subtract from today’s date (for past dates)
  • StartOf - Sets the time to 00:00:00
  • EndOf - Sets the time to 23:59:59
A preview of the current date range is shown to help you understand the range you are creating. Example of the Last 10 Days: Example of previous week: Example of last 12 completed months:

Variable Usage

To access the elements in the SQL editor, use the following syntax:
For users connected to a BigQuery warehouse, you will need to cast the data variable to the correct data type using the code below.

Single Date

Typical Usage
Casting to Date Type
Casting to Timestamp Type

Date Range

Date range pickers have two variables, startDate and endDate. All date ranges are updated when the dashboard is loaded or refreshed, filters are re-applied, or the date range is changed. These variables can be used in SQL queries like so:

Filtering

UI Elements can filter charts, see the overview page filtering section.