Dashboard Filter > Presets & Interconnected Filters

Learn how to add a Dropdown List of preset values to Draxlr dashboard filters, manually or from a saved query, and link filters so a city list depends on the selected country.

Presets give a filter a Dropdown List of values to pick from, so viewers don't have to type them. Use them for common values such as countries, employee IDs or product categories.

  • Speed: viewers pick a value instead of typing it.
  • Consistency: everyone applies the same values, spelled the same way.
  • Always up to date: a list loaded from a saved query changes as your data changes.

Dropdown Lists are available for Text and Numeric filters, both Standard and Raw SQL Query Variable. You set them up in the filter's sidebar when you add or edit a filter.

Types of Presets

Steps to Add Saved Query Presets

Saved Query tab in the Dropdown List section

In the filter's sidebar, switch Dropdown List to Saved Query.

1. Open the filter settings

Click Add Filter, or open an existing filter's menu (⋮) and choose Edit. The Add Dashboard Filter or Update Dashboard Filter sidebar opens.

2. Switch to Saved Query

Under Dropdown List (optional), switch from Manual to Saved Query.

3. Choose where the values come from

  • Use a saved query: pick it under Saved Query. Choose a query that returns the values you want, such as a unique list of cities. Use the link icon next to it to open the query.
  • Create a new list: click New Dropdown List, then pick a Table and Column. Draxlr fetches the column's unique values and, when you save the filter, saves them as a new saved query named like Unique list of Orders.ShipCity [Dashboard Filter].

4. Map the label and value fields

For an existing saved query, choose which columns to use as:

  • Label field: what viewers see in the dropdown, such as a city name
  • Value field: the value that's applied to the dashboard, such as a city ID

The Preview shows the values that will appear in the dropdown.

5. Make it interconnected (optional)

Turn on Interconnected Filter to make the list depend on another filter, for example to show only the cities of the selected country. See Interconnected Filters.

6. Save the filter

Click Create for a new filter, or Update for an existing one.

7. Use the presets

The filter now shows the list of values. When a list is loaded from a saved query, it always reflects the latest data.


Interconnected Filters

An interconnected filter is a child filter whose dropdown depends on the value of another parent filter. For example, with Country as the parent and City as the child, choosing France in Country limits the City dropdown to cities in France.

Interconnected filters need:

  • Saved Query presets on the child filter. The Interconnected Filter toggle stays off until a saved query is picked.
  • Another Text or Numeric filter on the dashboard to act as the parent.

Set Up an Interconnected Filter

1

Open the child filter

Open the menu (⋮) of the filter that should depend on another filter (for example, City) and choose Edit, or create a new filter.

2

Use Saved Query presets

Under Dropdown List, switch to Saved Query and select a query that returns the child's values, or create one with New Dropdown List.

3

Turn on Interconnected Filter

Turn on Interconnected Filter and select the Parent filter (for example, Country).

4

Choose where the parent value is applied

The parent filter's value narrows down the child's saved query:

  • For a Query Builder saved query, pick the Table and Column to filter on (for example, Orders.ShipCountry). The table is picked for you when the query uses only one table.
  • For a Raw SQL saved query with variables, pick the Raw query variable that receives the parent's value (for example, {{country}}).
5

Optionally turn on Auto-select single option

When this is on and the parent's value leaves only one option in the child, that option is selected and applied automatically.

6

Save the filter

Click Update (or Create for a new filter).

What Happens When the Parent Filter Changes

  • The child's dropdown is narrowed. The child only lists values that match the parent's current value. When the parent has no value, the child lists all of its values.
  • Values that no longer apply are removed. If the child has a selection that isn't in the new list, it is removed automatically. When several values are selected, only the ones that no longer apply are removed.
  • A single remaining option is selected (when Auto-select single option is on). For example, choosing Iceland in Country selects Reykjavik in City if it is the only city in Iceland.
  • The dashboard refreshes once. The parent and the updated child filter are applied together.
  • Chains update in order. If the child is itself the parent of another filter (for example, Country → City → Store), each level updates in turn.
  • Pre-applied parent values count too. If a public URL or an embedded dashboard pre-applies the parent filter, the child is updated the same way when the dashboard opens.
Parent (Country) changes toChild (City) beforeChild (City) after
Iceland (one city)No selectionReykjavik, with Auto-select single option on
France (several cities)ReykjavikCleared, since Reykjavik isn't in France
USA (several cities)New YorkNew York, unchanged because it's still available

Hidden filters in embedded dashboards and public URLs:

In an embedded dashboard or a public URL, a hidden filter with a pre-applied value is never changed automatically, even when its parent filter changes. A hidden filter without a pre-applied value is still updated when its parent changes, and is cleared when its parent filter is cleared.


Tip:

Use interconnected filters for hierarchies such as Country → State → City, or Category → Sub-category → Product, so viewers can only pick combinations that exist in your data.