COUNTROWS function (DAX) - DAX | Microsoft Learn
learn.microsoft.com › en-us › daxJun 21, 2022 · Syntax DAX COUNTROWS( [<table>]) Parameters Return value A whole number. Remarks This function can be used to count the number of rows in a base table, but more often is used to count the number of rows that result from filtering a table, or applying context to a table. Whenever there are no rows to aggregate, the function returns a blank.
COUNTROWS – DAX Guide
dax.guide › countrowsJan 18, 2023 · The COUNTROWS function can be used to check whether a column has only one item filtered/selected in the current filter context. However, HASONEVALUE is better in that case. The following expressions are equivalent. COUNTROWS ( VALUES ( table[column] ) ) = 1 HASONEVALUE ( table[column] ) )