Generates the count of non-null rows in a specified column, optionally counted by group. Generated value is of Integer type. |
NOTE: Empty string values are counted. Null values are not counted. |
NOTE: When added to a transform, the |
For a version of this function computed over a rolling window of rows, see ROLLINGCOUNTA Function.
pivot value: COUNTA(name) group:postal_code limit:1 |
Output: Generates a two-column table containing the unique values for postal_code
and the count of non-empty values in the name
column for that postal_code
value. The limit
parameter defines the maximum number of output columns.
pivot value:COUNTA(function_col_ref) [group:group_col_ref] [limit:limit_count] |
Argument | Required? | Data Type | Description |
---|---|---|---|
function_col_ref | Y | string | Name of column to which to apply the function |
For more information on the group
parameter, see Pivot Transform.
Name of the column from which to count values based on the grouping.
Required? | Data Type | Example Value |
---|---|---|
Yes | String (column reference) | myValues |