Dashboard controls use the
dashboard-controls feature flag, which is on for Lightdash Cloud. Self-hosted instances add it to LIGHTDASH_ENABLE_FEATURE_FLAGS.

How date zoom works
To change the granularity, click Default zoom or a named date zoom and pick a granularity, such as Day, Week, Month, Quarter, Year, or a custom granularity. Every chart that the zoom governs updates. In Default zoom, pick None to restore the charts’ own granularity. In a named date zoom, pick Reset to default to return to its saved granularity.- A zoom only affects charts that have a date dimension in their results.
- Default zoom governs every zoomable chart that isn’t in a named date zoom. It’s hidden from viewers when every chart is in a named date zoom.
- A named date zoom governs only the tiles you choose, using one date field per tile.
- A tile can be in one named date zoom at a time.
- Changes made by viewers are temporary. Refreshing the dashboard restores the saved granularities.
Set up date zoom
Make these changes in edit mode, then click Save changes.Choose the available granularities
The granularities you choose apply to every date zoom on the dashboard.- Open the … menu next to Add and hover Date zoom grains.
- Check the granularities viewers can pick, and uncheck the rest.


Set the default granularity
- Click Default zoom on the right of the controls bar.
- Pick a granularity, or clear it so tiles keep their own.
- Click Apply.


Add a named date zoom
A named date zoom points a chosen set of tiles at its own granularity, including tiles on other tabs.- Click Add → Date zoom. To add it straight into a section, click the section’s + → Date zoom.
- Type a name for the zoom and pick its granularity.
- Click Choose tiles. On each tile the zoom should govern, pick the Date field it zooms, then click Apply.
- Click Apply in the zoom’s editor.




Hide date zoom from viewers
- One named date zoom: in its Settings, turn off Show to viewers. Its granularity still applies to its tiles.
- All of date zoom: in the … menu next to Add, click Hide date zoom for viewers.
dateZoom parameter in the dashboard URL still overrides the saved granularity of charts outside them. Share the dashboard link without that parameter if every chart should keep its own granularity.
In dashboards as code, hiding all of date zoom is isDateZoomDisabled: true in the dashboard’s config. For named date zooms in a dashboard file, see Control order in dashboards-as-code.
Using custom granularities
Custom granularities defined in yourlightdash.config.yml appear after the standard granularities wherever you pick one. Use them for business-specific periods such as fiscal quarters or custom week definitions.
See the dimensions reference for how to create and configure custom granularities.
Referencing the date zoom in custom SQL
The currently selected date zoom granularity is exposed as a built-in reserved parameter calleddate_zoom. You can reference it in custom SQL anywhere parameters are supported:
day, week, month, quarter, year, or a custom granularity name). When no date zoom is selected, the value is an empty string.


Referencing the granularity in chart labels
You can also reference the active granularity directly in chart labels — useful for axis names, series names and slice labels that should update when a viewer changes the date zoom (or when a chart is saved at a fixed granularity). Use the following placeholder in any supported label, wheretable_field is the base date dimension on the chart (for example orders_order_date):
day, week, month, quarter, year, or a custom granularity label.
For example, a y-axis label of Orders per ${orders_order_date.granularity} renders as Orders per week when the dashboard is zoomed to a weekly granularity.
When you type $ in an axis name, big-value label, or gauge label, autocomplete lists every base date dimension on the chart so you can insert the placeholder without remembering the exact field id.
You don’t need to remember the exact field id — Lightdash will insert the placeholder for you:
- Cartesian axis names, big-value labels, and gauge labels — type
$in the label field and autocomplete lists every base date dimension on the chart. - Pie group labels and funnel step labels — click the insert date granularity icon inside the editable label field to insert the placeholder for the matching date dimension.
- Big value — label and comparison label
- Bar, line, area, scatter, and mixed charts — x-axis name, y-axis name, and series names
- Pie chart — group labels
- Gauge — custom value label and custom percentage label
- Funnel chart — step labels
Date zoom in embedded dashboards
Date zoom can be enabled or disabled in embedded dashboards using thecanDateZoom option in your JWT token:
canDateZoom is enabled, embedded dashboards render the dashboard’s configured date zoom controls (the Default zoom plus any named date zooms), not just a single global control. This applies to both JWT embeds and the React SDK, which share the same embedded dashboard rendering.
See the embedding reference for complete details.