COUNT_IF
Function COUNT_IF
is also available as a window function.
Syntax
COUNT_IF( condition )
Description
Returns the number of items in the group meeting the condition
condition.
Argument types:
condition
—Boolean
Return type: Integer
Examples
COUNT_IF([Profit] > 5)
Data source support
Materialized Dataset
, ClickHouse 1.1
, Microsoft SQL Server 2017 (14.0)
, MySQL 5.6
, Oracle Database 12c (12.1)
, PostgreSQL 9.3
.