Filtering
conditions restricts which rows a query or a list uses. (A rendered visualization and a dashboard write their filters differently, with the values themselves.) All conditions are combined with AND — a
row is used only when every condition matches it.
Every condition names the property it tests under property, as dataset.property. The keys
column and sourceColumn are refused with 400 INVALID_REQUEST naming the new key. Condition
type values are case-sensitive, Title Case with spaces.
| Type | Matches |
|---|---|
Attribute In / Attribute Not In |
Rows whose attribute has / does not have one of the listed values |
Measure In Range |
Rows whose measure lies in an inclusive range |
Measure Is Null / Measure Is Not Null |
Rows with no value / with a value for the measure |
Time In Range / Time Not In Range |
Rows whose time lies inside / outside an inclusive range |
Time Is Null / Time Is Not Null |
Rows with no time / with a time for the property |
Cyclic Time In |
Rows on given days of the week, hours of the day or months of the year |
Semi Join |
Rows whose referenced record matches conditions of its own |
In the app, the same filters are built from the filter bar — see Filters.
Attribute filter
{ "type": "Attribute In", "property": "orders.country", "shortIds": [1, 5, 12] }
{ "type": "Attribute Not In", "property": "orders.status", "shortIds": [3] }
| Field | Type | Description |
|---|---|---|
type |
String | Attribute In or Attribute Not In |
property |
String | The attribute property |
shortIds |
Number[] | Identifiers of the values to match. At least one, whole numbers only — a null, a fraction or a quoted number is refused with 400 INVALID_REQUEST |
matchAll |
Boolean | For a multi-value (Set of Attributes) property only: true keeps a row whose set holds every listed value; absent or false keeps a row holding any of them |
A filter takes the identifiers of attribute values, not their text. Turn text like "Germany"
into its identifier with POST /attributes/lookup,
using the property's collection from GET /models. The
TypeScript client, Explore, dashboards and the AI integration
do this for you.
Rows with no value
A row may have no value for an attribute — the cell was empty, or the property was added after the row was loaded. Grouping by that attribute shows all such rows together as one empty value.
The identifier 0 stands for that empty value in a filter:
| Filter | Keeps |
|---|---|
Attribute In with "shortIds": [0] |
Only the rows with no value |
Attribute In with "shortIds": [0, 5] |
The rows with no value, and the rows whose value is 5 |
Attribute Not In with "shortIds": [0] |
Only the rows that have a value |
Attribute Not In with "shortIds": [0, 5] |
The rows that have a value other than 5 |
An Attribute Not In filter never keeps a row with no value, whether or not it lists 0 — a missing
value is not "something other than Germany". To keep those rows too, use Attribute In and list 0
beside the values you want.
Values that do not exist
The lookup answers 0 for text that is not in your data. That 0 means "not found" — do not put
it into a filter, where 0 is the empty value and would return the rows with no value.
For a value that was not found, use the identifier 9007199254740991. No row has it, so filtering to
it returns nothing and excluding it excludes nothing.
Measure range filter
{ "type": "Measure In Range", "property": "orders.revenue", "minimum": 10000, "maximum": 50000 }
| Field | Type | Description |
|---|---|---|
property |
String | The measure property |
minimum |
Number | Lower bound, inclusive |
maximum |
Number | Upper bound, inclusive |
Bounds are in the measure's stored units: for a price with scale: 100, $100.00 to $500.00 is
minimum: 10000, maximum: 50000.
A minimum above the maximum is a valid range that no value lies in, as in SQL BETWEEN: the
filter matches no rows. The bounds are never swapped.
Measure Is Null and Measure Is Not Null take only property.
Time range filter
{ "type": "Time In Range", "property": "orders.orderedAt", "minimum": 1709251200000, "maximum": 1711929600000 }
| Field | Type | Description |
|---|---|---|
property |
String | The time property |
minimum |
Number | Start, in epoch milliseconds, inclusive |
maximum |
Number | End, in epoch milliseconds, inclusive |
Time Not In Range takes the same fields and keeps the rows outside the range. A row with no time
never matches a Time In Range, and neither does any row when minimum is after maximum.
Missing time filter
{ "type": "Time Is Null", "property": "orders.shippedAt" }
Time Is Null keeps the rows with no time in the property — the cell was empty, or the property
was added after the row was loaded. Time Is Not Null keeps the rows that have one. Both take only
property.
On a time of a linked dataset (customers.signupAt filtering orders), Time Is Null also keeps
the rows whose link is empty or points at a record that does not exist — every row that reaches no
time at all. Those are exactly the rows a breakdown by that time shows as its empty value, so the
filter reproduces that group. Time Is Not Null keeps the rows that reach a record with a time.
Recurring time filter
Cyclic Time In keeps rows on a recurring part of the calendar. Combine it with a Time In Range
for "every Monday in the last 30 days":
{ "type": "Cyclic Time In", "field": "Day Of Week", "property": "orders.orderedAt", "values": [1, 2], "timezone": "Europe/Prague" }
{ "type": "Cyclic Time In", "field": "Hour Of Day", "property": "orders.orderedAt", "values": [9, 10, 11], "timezone": "Europe/Prague" }
{ "type": "Cyclic Time In", "field": "Month Of Year", "property": "orders.orderedAt", "values": [1, 2, 12], "timezone": "Europe/Prague" }
| Field | Type | Description |
|---|---|---|
field |
String | Day Of Week, Hour Of Day or Month Of Year |
values |
Number[] | Day of week 1 (Monday) … 7 (Sunday); hour 0 … 23; month 1 (January) … 12 (December). At least one whole number in range — anything else is refused with 400 INVALID_REQUEST naming conditions[].values |
timezone |
String | IANA zone (Europe/Prague) the calendar is read in. Omitted or blank means UTC; an unknown zone is refused with 400 INVALID_REQUEST |
A row with no time matches none of these.
Filtering on a linked dataset
Write the condition with the linked dataset's property; Engeene applies it through the reference. Orders of customers in one country:
{ "type": "Attribute In", "property": "customers.country", "shortIds": [42] }
Semi Join
The same filter written out explicitly. Source conditions name properties of the source dataset without a prefix:
{
"type": "Semi Join",
"property": "orders.customerId",
"sourceDataset": "customers",
"sourceProperty": "customerId",
"sourceConditions": [
{ "type": "Attribute In", "property": "country", "shortIds": [42] }
]
}
| Field | Type | Description |
|---|---|---|
property |
String | The Reference property, as dataset.property, in the dataset the query starts from |
sourceDataset |
String | The dataset whose records are matched |
sourceProperty |
String | That dataset's ID property |
sourceConditions |
Condition[] | Conditions on the source dataset |
The source dataset is read with your access: a role that limits which rows you may see limits the
rows the source conditions can match too, at every level of nesting. When that limit cannot be applied
to the source dataset (no reference leads from it to the restricted dataset), the request is refused
with 400 NO_REFERENCE_PATH rather than run without it.
A source filter that matches a very large number of records — millions — can be refused with 422
rather than answered partially. Narrow it, for example with a shorter time range.
Combining conditions
{
"conditions": [
{ "type": "Time In Range", "property": "orders.orderedAt", "minimum": 1709251200000, "maximum": 1711929600000 },
{ "type": "Attribute In", "property": "orders.category", "shortIds": [5] },
{ "type": "Measure In Range", "property": "orders.revenue", "minimum": 1000, "maximum": 999999 }
]
}
This keeps rows in the time range and in category 5 and with revenue between 1,000 and 999,999. The order you list conditions in does not change the result or the speed.
Tip: a time range on the dataset's primary time is the most effective filter for keeping a query fast.