Cheat Sheets/Power BI/COUNTBLANK
DAX function

COUNTBLANK — DAX function reference

Count blank values.

Syntax

dax
COUNTBLANK(<column>)

Examples

dax
COUNTBLANK(Sales[Notes])
→ A number
dax
DIVIDE(COUNTBLANK(Sales[Notes]), COUNTROWS(Sales))
→ Percent of rows with no note
dax
CALCULATE(COUNTBLANK(Customer[Email]), Customer[Segment] = "Enterprise")
→ Enterprise customers missing an email

Common mistakes & gotchas

Related DAX functions

From Aggregations

← Back to the Power BI (DAX) cheat sheet