
Examples
Using filters

Using where

Using Inline SQL

Using date_range

Cascading Dropdowns (Linked Filters)

Attributes
Array of filter IDs to apply when querying for dropdown options. Use this to create cascading/linked dropdowns where selecting a value in one dropdown narrows the available options in this dropdown.
Column name to use as the value for each option, and the column to filter by when this dropdown’s
id is used in the filters prop of a chartCreate a custom link title for the info link, placed after the info text (can only be used with info_link)
Icon to display in the dropdown triggerAllowed values:
trending-uptrending-downclockcalendarcheckxinfoalert-circlehelp-circleeyeeye-offuseruserssettingscogplusminusupdownrightleftstarheartsearchfilefile-texthomemailfiltersharebelltrashcredit-cardglobekeycroissantmaprotaterewindbankreceiptactivitychart-columnchart-piechart-no-axes-combinedgoalrockettrophyapplecookiedonutbeefcakesouputensilsmilknutpyramidtrianglearrow-downarrow-leftarrow-rightarrow-upchevron-downchevron-leftchevron-rightchevron-upchevrons-downchevrons-leftchevrons-rightchevrons-upmenuexternal-linkcheck-circlex-circleedittrash-2copysavedownloaduploadsendrefreshredoundofolderfolder-openimagefile-imageuser-plususer-minususer-checklockunlocklog-inlog-outmessage-squaremessage-circlephonephone-callbell-offvideovideo-offplaypausestopskip-backskip-forwardvolumevolume-1volume-2volume-offvolume-xbookmarktaglinkunlinkshare-2alert-triangleloadermore-verticalmore-horizontalgridlistmaximizeminimizezoom-inzoom-outthumbs-upthumbs-downshopping-cartdollar-signcameraprintermonitorsmartphonelaptopcalculatorcloud-sun-rainsun-snowthermometer-sunthermometer-snowflakecloudycloud-rain-windcloud-rainwindsuncloud-snowthermometercloud-drizzlecloud-suncloudcloud-lightningsnowflakeflameatomfuelmagnetfactorytree-deciduouswaypointsplugdambattery
For a multi-select dropdown, pre-selects the first N options (after
order is applied) when the component loads. Generalizes select_first. Does not limit the option list and has no effect when multiple=false.Filter data to a time period. Attributes:
date_range is an OBJECT with range (the period) and optionally date (which column to filter on when the table has more than one). Shape: date_range={ range="last 12 months" date="order_date" }. range accepts predefined values (last 7 days, month to date), dynamic patterns (Last 90 days), custom windows (2020-01-01 to 2023-03-01), or partial ranges (from 2020-01-01, until 2023-03-01). Pass a plain string for range — the whole object is NOT a string.Example:- range:
string- Time period to filter. Use presets like ‘last 7 days’, dynamic patterns like ‘Last 90 days’, custom ranges like ‘2020-01-01 to 2023-03-01’, or partial ranges like ‘from 2020-01-01’.- Allowed values:
todayyesterdaylast 7 dayslast 30 dayslast 3 monthslast 6 monthslast 12 monthsprevious weekprevious monthprevious quarterprevious yearthis weekthis monththis quarterthis yearnext weeknext monthnext quarternext yearweek to datemonth to datequarter to dateyear to dateall time
- Allowed values:
- date:
string- Date column to filter on. Required when the data has multiple date columns.
Using the Filter Variable
Reference this filter using{{filter_id}}. The value returned depends on where you use it.
The examples below show values for three scenarios:
- No selection
- Single select: “Electronics” selected
- Multi select: “Sports” and “Home” selected (when
multiple=true)
Available Properties
You can also access specific properties using{{filter_id.property}}:
.filter
Returns a complete SQL filter expression ready to use in WHERE clauses. Returnstrue when no value is selected.

