Cheat Sheets/Power BI/COUNTA
DAX function

COUNTADAX function reference

Count non-blank values.

Syntax

dax
COUNTA(<column>)

Examples

dax
COUNTA(Sales[Notes])
A number
dax
CALCULATE(COUNTA(Sales[Notes]), Sales[Region] = "West")
Count of non-blank notes in the West region

COUNTA works on any data type, unlike COUNT which is numeric-only.

dax
COUNTA(Product[DiscontinuedDate])
Counts products that have been discontinued (date filled in)

Common mistakes & gotchas

Related DAX functions

From Aggregations

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet