Build / Dashboards
Dashboard date filters
The dashboard date filter sets one date range, such as Last 30 days or This quarter, for every widget that follows it. Use it when you want a dashboard’s charts and numbers to cover the same period without editing each widget.
You don’t need a Filter Variable for this. The Filter by date chip appears in the filter bar as soon as one widget on the dashboard follows the date filter.
Connect widgets to the date filter
Section titled “Connect widgets to the date filter”Each widget chooses whether to follow the date filter, and which of its date columns to filter.
Query Widgets follow it through a date helper in their SQL. Ask Eric to “make this widget follow the dashboard date filter”, or see Use the dashboard date filter.
Classic widgets follow it per data layer:
- With the dashboard in edit mode, click the widget to open the widget editor.
- Under Data Layer Settings, select the data layer and open the Filter tab.
- Choose the layer’s date or datetime column in Date Filter Column (optional). For a chart whose X axis is a date, you can instead turn on Use X Axis in Dashboard Date Filter.
- Repeat for each data layer that should follow the date filter.
- Click Save & Close.
A widget that follows the date filter shows a calendar icon in its footer. Click it to see the dates it uses. See Widget controls on a dashboard.
Pick a date range
Section titled “Pick a date range”Click Filter by date in the filter bar.
| Choice | What it gives you |
|---|---|
| A preset | Today, This week, This month, Last month, Last 7 days or Last 30 days. Presets stay current as time passes. |
| More… | More presets: Yesterday, Last week, This quarter, Last quarter, This year and Last year. Also any custom date ranges the dashboard has. |
| Custom period | A rolling window you define, such as the trailing 30 days. It moves forward each day. Under More…. |
| Start and End | Fixed dates that don’t move. |
| Compare with | None, Previous period, Same period last year or Custom dates…. |
“This” presets such as This month run from the start of the period through today. Click Apply to use your choice.
Defaults and remembered choices
Section titled “Defaults and remembered choices”If you can edit the dashboard, Save as dashboard default in the date picker saves the current date range and every filter you’ve applied as the dashboard’s defaults. People who haven’t picked their own filters on the dashboard start from these.
Resplendent remembers each person’s last filter choices on each dashboard. A new browser tab opens with your most recent choices, and each open tab keeps its own until you change them. Saving new defaults doesn’t change what people with remembered choices see.
To go back to the saved defaults:
- Restore dashboard defaults in the filter bar restores the date range and every filter.
- Reset in the date picker restores only the date range and keeps your other filters.
Add custom date ranges
Section titled “Add custom date ranges”You can add your own named ranges, such as fiscal quarters, to the More… menu. They come from a Filter Variable whose values are date ranges.
- Open the dashboard and click Edit.
- Click Settings.
- Under Behavior, choose the Filter Variable in Custom Date Ranges.
- Close the settings and click Save.
This only adds choices to the menu. Widgets still need to follow the date filter.
Troubleshooting
Section titled “Troubleshooting”The Filter by date chip is missing
Section titled “The Filter by date chip is missing”No widget on the dashboard follows the date filter yet. Connect at least one widget, save it, and reload the dashboard.
A widget ignores the date range
Section titled “A widget ignores the date range”- Check that each of its data layers has a Date Filter Column, or Use X Axis in Dashboard Date Filter turned on.
- Check that the column is a date or datetime column.
- For a Query Widget, check that its SQL uses a dashboard date helper.
The dashboard shows little or no data
Section titled “The dashboard shows little or no data”The range may be too narrow for your data. Widen it, and check that your sources have synced recently.
Dates look a day off
Section titled “Dates look a day off”Date boundaries follow your timezone. Check the timezone in your profile.