Skip to content

CONDITIONAL_TRUE_EVENT

CONDITIONAL_TRUE_EVENT(BOOLEAN_COLUMN_EXPRESSION)

Computes a counter within each partition that starts at zero and increases by 1 each time the boolean column's value is true. ORDER BY is required for this function.