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

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements