Forum Discussion
Sammy22
2 years agoHelper I
Countifs function with unique element
Hello, I am trying to calculate the 'count' column in pBI but am struggling. I need to count the unique number of countries each customer is assigned to, for example John has 4, peter has 1 (Ital...
- 2 years ago
Sammy22 , Try using below mentioned DAX measure
Count = CALCULATE(DISTINCTCOUNT('Table'[Country]), ALLEXCEPT('Table', 'Table'[Customer]))
bhanu_gautam
2 years agoSuper User
Sammy22 , Try using below mentioned DAX measure
Count = CALCULATE(DISTINCTCOUNT('Table'[Country]), ALLEXCEPT('Table', 'Table'[Customer]))
- Sammy222 years agoHelper I
Thank you! What if i want a date filter too with a date after 2022-01-02? bhanu_gautam ?