Skip to main content

FILTER function

Returns a table that has been filtered based on a specified condition.

Syntax

filter(<table>, <filter>)
ParameterTypeDescription
tablevtThe table to be filtered.
filterboolA boolean (True/False) expression to be evaluated for each row of the table.

Usages

filter(orders, orders.discount == 0)
filter(customers, is_empty(customers.last_ordered_at))