Forum Discussion

Toerstad's avatar
Toerstad
Advocate I
6 years ago
Solved

Agg-tables - What is the difference between Count and Count Rows, and can you use distinctcount?

When you mark a table as an aggregate table in Power BI, you can map columns in the aggregate table to the details-table using summary functions like: Count, GroupBy, Max, Min, Sum and Count Rows. I...
  • v-juanli-msft's avatar
    6 years ago

    Hi Toerstad 

    CountRows->calculate the rows of a table

    Count->calculate the rows of a column

    DISTINCTCOUNT->calculate the distinct rows of a column

     

    They all ignore the blank or empty strings.

    COUNTA would consider blank or empty strings.

     

    COUNTX, COUNTAX can calculate for measures.

     

    You could learn more here:

    A video: https://www.youtube.com/watch?v=V8wYTjKyvgk

    DAX Reference:

    https://docs.microsoft.com/en-us/dax/count-function-dax

     

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.