Applies to:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Description
Returns true for all cases of a column that match any of the values of the match list. Returns false otherwise.
Syntax
Code Block | ||||
---|---|---|---|---|
| ||||
table.column IN ( value1, ... ) |
Supported types
Supported value types for the match list are STRING, INTEGER, FLOAT and DATE.
Null handling
A match value can also be NULL. A NULL value matches with all cases of a column that are null.
Case sensitivity
Comparison of strings is case-sensitive
Examples
Column and match list contain only integers.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column contains only integers and match list contains floats and integers. All cases of the column are matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column and match list contain only dates.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Panel | ||
---|---|---|
| ||
Table1 |
Match list is parameterized with one parameter and IN operation is stored as a KPI. Stored KPI is called with one integer value which results in only one case of the column being matched.
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
KPI "SAVED FORMULA"
Column1
|
Column and match list contain positive and negative integers. All non-null cases of the column are matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column contains only NULL values and match list only non-NULL values. No cases of the column are matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column and match list contains only the same floats. All cases of the column are matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column contains only floats and match list contains floats and integers. All cases of the column are matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column and match list contain only strings and match list also contains empty string. Two cases of the column are matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column and match list contain empty string. Empty string is matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|
Column and match list contains a NULL value and strings. The IN operator is used for column filtering.
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Filter
Column1
|
Column contains a NULL value and 3 strings and match list 3 integers. The IN operator is applied on the COUNT aggregation of the column. One value of the match list is matched.
Panel | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Column1
|