Cheat Sheets/Power BI/COUNT
DAX function

COUNTDAX function reference

Count numeric values.

Syntax

dax
COUNT(<column>)

Examples

dax
COUNT(Sales[OrderID])
A number
dax
CALCULATE(COUNT(Sales[OrderID]), Sales[Amount] > 0)
Count of positive-amount rows
dax
COUNT(Sales[Discount])
Counts only rows where Discount is non-blank and numeric

Common mistakes & gotchas

Related DAX functions

From Aggregations

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet