Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 (Italy).
Order Number | Customer | Country | Count |
1a | John | UK | 4 |
2a | David | Mexico | 3 |
3a | Peter | Italy | 1 |
1b | John | Germany | 4 |
2b | David | France | 3 |
3b | Peter | Italy | 1 |
1c | John | UK | 4 |
2c | David | Egypt | 3 |
3c | Peter | Italy | 1 |
4a | John | Poland | 4 |
Solved! Go to Solution.
@Sammy22 , Try using below mentioned DAX measure
Count = CALCULATE(DISTINCTCOUNT('Table'[Country]), ALLEXCEPT('Table', 'Table'[Customer]))
Proud to be a Super User! |
|
@Sammy22 , Try using below mentioned DAX measure
Count = CALCULATE(DISTINCTCOUNT('Table'[Country]), ALLEXCEPT('Table', 'Table'[Customer]))
Proud to be a Super User! |
|
Thank you! What if i want a date filter too with a date after 2022-01-02? @bhanu_gautam ?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
13 | |
11 | |
8 |