DAX Function Guide

COUNTROWS
Empty image or helper icon

Sam McKay

CEO & Founder

How does the COUNTROWS work?
The COUNTROWS function (DAX)counts the number of rows within a Power BI table.
COUNTROWS Formula Syntax

COUNTROWS(
     <table>
)

How do you use the COUNTROWS?

The COUNTROWS function is used to count the unique values in a column using the current filter context. It can also be used to check whether a column has only one item filtered/selected in the current context.

Related Blog Posts

Loading

Considerations when using the COUNTROWS?

The COUNTROWS function is used to count the unique values in a column using the current filter context. It can also be used to check whether a column has only one item filtered/selected in the current context.

Related Video Tutorials

Loading

Formula examples using the COUNTROWS

=COUNTROWS(‘Orders’)

=COUNTROWS(RELATEDTABLE(ResellerSales))

= COUNTBLANK (SalesTarget[SalesTarget])

Related Courses

Loading