Forum Discussion

ThomasSan's avatar
ThomasSan
Helper IV
2 years ago
Solved

Differences COUNTAX and COUNTROWS

Hi everyone,   I am currently doing the Master DAX course by SQLBI. In exercise 03.30, I attempted a solution with COUNTAX but this yielded a different result than the actual solution that used COU...
  • Ronak131290's avatar
    Ronak131290
    2 years ago

    You can also use countax function 

    CustWithChildren =
    COUNTAX(
    FILTER(Customer, Customer[Total Children] > 0),
    Customer[Customer ID]
    )
    You need to filter table which is not contains total children is 0.



    If you find these solutions accurate and helpful, please accept them as the solution to the problem.