Dashboard > Filters

Learn how to use and manage Draxlr dashboard filters, from applying and clearing values to Standard and Raw SQL Query Variable filters, reordering, hiding filters and requiring filter selections.

Dashboard filters let you narrow down every item on a dashboard at once, for example to a country or a date range, without changing the underlying queries.

Here is an interactive demo of using filters on a dashboard:

Filter bar with Country and Date filters

Filters sit above the dashboard items. Click a filter to set its value.


Using Filters

  1. Click a filter in the filter bar.
  2. Choose an operator, such as IN, and one or more values. Date filters open a date picker with presets, custom dates and relative dates.
  3. Click the check mark to apply the filter.

The items linked to the filter update, and their filter icon turns green. To remove a value, click the × on that filter, or click Clear filters to remove all filter values at once.

To see which filters affect an item, click the item's filter icon (Show Filters). Its Filters & variables panel lists:

  • Dashboard Filters linked to the item. Applied filters are green.
  • Variables of a Raw SQL item. Click a variable to change its value for that item, then click Apply.

Draxlr remembers the filter values you apply in your browser, so they're still applied when you come back to the dashboard. Other people don't see your filter values, and the values are cleared if someone changes the filter's data type or how it's set up.


Types of Dashboard Filters

1. Standard

  • Description: Standard filters allow you to filter dashboard items based on column values in their underlying tables. When you add a filter, this type is called Dashboard Filter.
  • Compatibility: Works with all query types, whether created using the Query Builder or written as Raw SQL.

Learn more

2. Raw SQL Query Variable

  • Description: These filters let you pass values directly into variables defined within a Raw SQL query.
  • Compatibility: Only works with queries written in Raw SQL that contain variables (e.g., {{employeeId}}).

Learn more


By combining these two filter types, you can build flexible, interactive dashboards that adapt to your unique data exploration needs.


Managing Filters

Members who can edit the dashboard can add, change, reorder and delete its filters.

Add a filter

Click Add Filter in the filter bar. If the dashboard has Raw SQL items with variables, or is a global dashboard, first choose Dashboard Filter (a Standard filter) or Raw SQL Query Variable. Otherwise the Standard filter form opens straight away.

Then enter a Name, pick a Data Type, and choose the field to filter on in each item. See Standard and Raw SQL Query Variable for the full steps, and Preset values to show a dropdown of values.

Edit or delete a filter

Click the menu (⋮) on a filter and choose Edit or Delete. The menu shows only while the filter has no value applied, so clear its value first. Deleting asks you to confirm.

Reorder filters

When a dashboard has two or more filters, click Re-arrange Filters (the arrows button) next to Add Filter. Drag the filters into the order you want, then click the check mark to save, or the × to cancel.


Hide Filters

You hide a filter where you share the dashboard, not in the filter's own settings:

Shared throughHow to hide a filter
Dashboard groupsClick the tick under Show Filter in the group's Dashboard Filters
Public URLsClick the tick under Show Filter
Embedded dashboardsClick the eye icon under Visible

A hidden filter isn't shown to viewers, but its value still applies. It's also left out of the applied filters listed on each dashboard element.


Required Filters

Required filters keep dashboard elements empty until a value is selected. Use them when a dashboard shouldn't show any data until the viewer makes a choice, for example, a state or a city.

Until every required filter linked to an element has a value, the element shows No Data with a message such as Select State to view data. The message only lists filters the viewer can see, so required filters hidden from them are left out. Draxlr doesn't return any data for the element until then, including cached results.

Set Up Required Filters

1

Open Dashboard Settings

On the dashboard, click the Dashboard Settings (gear) icon in the top bar. Admin and Full access members can open it.

2

Choose the required filters

Under Required Filters, select one or more of the dashboard's filters. This option appears once the dashboard has at least one filter.

3

Save

Click Update. The dashboard reloads with the new setting.

How Required Filters Work

  • Only linked elements wait. An element waits only for the required filters that are applied to it. Elements that aren't linked to any required filter show data as usual.
  • Every linked required filter needs a value. If an element is linked to two required filters, it shows data once both have a value.
  • What counts as selected. A Raw SQL Query Variable filter needs a value. A Standard filter needs an operator, plus a value when the operator takes one.
  • Pre-applied values count. Filter values pre-applied in a public URL or an embed meet the requirement, so those elements show data straight away.
  • It applies wherever the dashboard is shown, including public URLs, embedded dashboards, Full App Embed and exports.

Tip:

If you hide a required filter in a Dashboard group, public URL or embed, set its value there too. Viewers can't select a hidden filter, so without a value the elements stay empty.