Skip to content

Shape data

Filter Variables

A Filter Variable is a control people use on a dashboard, such as a client dropdown, a status list, a date range or a search box. One Filter Variable can drive many widgets on many dashboards. Change it on the dashboard and every widget connected to it updates.

Filter Variables belong to the Company, not to one dashboard. You create them once in Settings, then connect them to widgets.

Type What viewers get Where the options come from
Text A list of text values Values you type in
Number A list of numbers Values you type in
Dynamic A list of values that stays current A column in a Dataset, Stash, Modified Dataset or Query Dataset
Between Dates Relative date ranges, such as Last 7 days Date ranges you set up
Dynamic Date Range Date ranges read from your data Start and end date columns in a Dataset, Stash, Modified Dataset or Query Dataset
Search A free-text search box Nothing. Viewers type what they want.

Variable Mode is Single, where viewers pick one value, or Multi, where they can pick several. Search and Between Dates are always Single.

  1. Go to Settings → Filter Variables and click New Dynamic Filter Variable, or Add Filter Variable if you don’t have any yet.
  2. Enter a Name. Viewers see it in the filter bar.
  3. Choose a Variable Type and a Variable Mode.
  4. For Dynamic or Dynamic Date Range, pick the Source Data Stream, then the Value Column and optional Label Column, or the Start Column and End Column. The Values list fills in from your data.
  5. For the other types, add the values yourself.
  6. Click Save & Close.

You need the Staff or Admin role and the Dynamic Filter Variables permission. To connect it to widgets, see Connect a Filter Variable to widgets.

Dynamic and Dynamic Date Range variables take their options from one source: a Dataset, a Stash, a Modified Dataset or a saved Query Dataset. The options are stored on the Filter Variable and refresh when the source does.

  • People viewing a dashboard, including through a Share Link, see those stored options. They don’t need access to the source.
  • To use a Query Dataset as the source, you need access to every Dataset it reads. Unsaved drafts can’t be used.
  • Using a Query Dataset as the source only fills the dropdown. To make a Query Widget react to the selection, connect the variable in the widget. See below.

Limit with user metadata shows each viewer only the values that match their own user metadata for the User Metadata Key you choose.

A Filter Variable does nothing until a widget uses it.

Classic widgets use it in a filter condition:

  1. Open the widget in the widget editor and select the data layer.
  2. Under Filter, add a condition and choose the column to filter, such as client_name.
  3. Click Compare to a Filter Variable beside the value.
  4. Pick the Filter Variable. Ones already used on the dashboard are listed first, under In Use on this Dashboard.
  5. Click Done, then save the widget.

Query Widgets use it through a Query Parameter in their YAML. Browse filters in the Query Widget editor adds one for you. See Filter with a Filter Variable.

One widget can use several Filter Variables, such as a client and a date range.

Column type Filter Variables you can use
Text, number or true/false Text, Number, Search, and Dynamic from a column of the same type
Date or date and time Between Dates, Dynamic Date Range, and the dashboard’s own date filter

Variables that don’t fit appear under Incompatible Filter Variables and can’t be picked. A Dynamic variable built from a text column, for example, can’t filter a number column.

The filter bar at the top of a dashboard shows every Filter Variable that a widget on that dashboard uses. Each chip shows the variable’s name and what it’s set to.

Setting Chip shows
Single, a value chosen That value
Single, nothing chosen and no values None
Multi, every value All
Multi, one value That value
Multi, some values For example 3 selected
Multi, no values None
Search, text typed The text
Search, nothing typed All

A Single variable with nothing chosen uses its first value.

Click a chip to change it, then Apply. Each person’s choices are their own and don’t change what others see. Editors can save the current choices as the dashboard’s starting selection. See Defaults and remembered choices.

A Between Dates variable can also add custom ranges to the dashboard’s date menu. See Add custom date ranges.

Click Delete in the list. If dashboards or widgets use the variable, the dialog lists them and the button reads Delete anyway.

Every Filter Variable counts, whatever its type.

Plan Filter Variables
Free Forever 0
Starter 3
Professional 10
Business 50
Starship Unlimited