DAX Aggregation - COUNT function
Advertisements
Description
Counts the number of cells in a column that contain numbers.
Syntax
COUNT (<column>)
Parameters
Sr.No. | Parameter & Description |
---|---|
1 |
column The column that contains the numbers to be counted. |
Return Value
Returns a whole number.
Remarks
You can use columns containing any type of data, but only numbers are counted. The COUNT function counts the rows that contain the following kinds of values −
- Number
- Dates
If the row contains text that cannot be translated into a number, the row is not counted. When the function finds no rows to count, it returns a blank. When there are rows, but none of them meet the specified criteria, then the function returns 0.
Example
= COUNT (ProductInventory[UnitsBalance])
dax_functions_aggregation.htm
Advertisements