COUNT_IF
Counts the number of TRUE input values.
This function is equivalent to COUNT(CASE WHEN X THEN 1 END).
Syntax
COUNT_IF(X)
Arguments
X
Type: any
Values that be evaluated as a Boolean.
Returns
Type: bigint
Returns the number of TRUE input values.