Shape data / Filtering
Advanced values
A condition usually compares a column to a value you type. You can also compare it to another column in the same row, to a Filter Variable that viewers set on the dashboard, or to the dashboard’s own date filter.
Choose the kind of value
Section titled “Choose the kind of value”Three buttons sit beside each condition’s value.
| Button | Compares the column to |
|---|---|
| Default input method | A value you type or pick. Its icon matches the column type. |
| Compare to a Filter Variable | Whatever viewers choose for a Filter Variable |
| Compare to another Column | Another column in the same row |
Point at a button to see its name. The Filter Variable button doesn’t appear in a Modified Dataset’s Filter tool.
Typed values
Section titled “Typed values”- Text columns suggest values from your data as you type. You can pick several. See Several values at once.
- Number columns take one number.
- True/false columns have a true and false toggle.
- Date columns have their own pickers. See Dates.
Is Blank and Is not Blank don’t need a value.
Compare to another column
Section titled “Compare to another column”Use this when the relationship between two columns matters, such as revenue above cost.
- Click Compare to another Column.
- Pick the column to compare with.
Only columns of the same type can be picked: text with text, whole numbers with whole numbers, decimals with decimals, true/false with true/false. Date and date-time columns can be compared with each other. Other columns are greyed out.
Offsets
Section titled “Offsets”Click the gear (Column offset settings) to shift the comparison.
- Date columns: set Days, Hours and Minutes to add to the other column. To find items due within a week of creation, combine
Due DateAfterCreated Date(no offset) andDue DateBeforeCreated Dateplus 7 days. - Other columns: Offset compares with the other column’s value a number of rows earlier, such as
1for the previous row. Rows are compared in the order the data is in. A negative number looks at later rows.
Examples
Section titled “Examples”| Question | Column | Operator | Compared to |
|---|---|---|---|
| Which sales made money? | revenue |
Greater than | cost |
| Where do shipping and billing differ? | shipping_address |
Not Equal | billing_address |
| Which tickets did someone else assign? | assigned_to |
Not Equal | created_by |
| Which records changed after creation? | modified_date |
After | created_date |
Compare to a Filter Variable
Section titled “Compare to a Filter Variable”Use this to let viewers choose the value on the dashboard. See Filter Variables for creating one.
- Click Compare to a Filter Variable.
- Pick a variable. The list is grouped:
- Dashboard Date Filter: the dashboard’s own date filter. See below.
- In Use on this Dashboard: variables other widgets here already use.
- Filter Variables: everything else that fits the column.
- Incompatible Filter Variables: variables that don’t fit this column. You can’t pick these.
- Choose an operator. The operators follow the variable’s type. See Operators with Filter Variables.
Click the variable icon beside the picker to see the variable’s current values.
A dashboard’s filter bar shows each variable its widgets use, so adding one here also adds it to the bar.
Compare to the dashboard date filter
Section titled “Compare to the dashboard date filter”In a classic widget’s filters, you can use the dashboard’s date filter directly, without making a Filter Variable. This helps when a widget needs the dashboard’s dates in a condition of its own, such as “created after the dashboard’s start date”.
| Reference | Means | Operators |
|---|---|---|
| Dashboard Date Range | Dates inside the dashboard’s chosen range | Equals, Not Equal |
| Dashboard Date Start | The first day of the dashboard’s range | On, Not On, Before, After |
| Dashboard Date End | The last day of the dashboard’s range | On, Not On, Before, After |
To use one, pick a date or date-time column, click Compare to a Filter Variable, and choose from Dashboard Date Filter.
When the dashboard has no dates set
Section titled “When the dashboard has no dates set”Click the gear beside the reference to choose what the condition does when nobody has set the dashboard’s dates:
- Match all rows, the default: the condition is skipped.
- Match no rows: the widget shows nothing until dates are set.
Choose Match no rows when the widget only makes sense for a chosen period.
To map a widget to the dashboard date filter without a condition, see Dashboard date filters.