Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello.
This seems to be a very easy DAX but somehow I haven't found the solution.
Here's a copy of a table I am working on:
I just need to count the number of customers who purchased more than 1 unit. The answer should be 6 in the example above. But, the total is currently summing all the customers which is 13. I tried various fashions of sumx and couldn't get anything closer than the if formula.
Any hints?
Thanks.
Solved! Go to Solution.
Hi @etane
Would a measure like this help?
Customers who bought multiple units =
COUNTROWS(
FILTER(
SUMMARIZE(
'Table',
'Table'[Accounts],
"_Units",
SUM( 'Table'[Units Sold] )
),
[_Units] > 1
)
)
Let me know if you have any questions.
(In the model I added DimAccount so I could fix the sort order.)
Hi @etane
Would a measure like this help?
Customers who bought multiple units =
COUNTROWS(
FILTER(
SUMMARIZE(
'Table',
'Table'[Accounts],
"_Units",
SUM( 'Table'[Units Sold] )
),
[_Units] > 1
)
)
Let me know if you have any questions.
(In the model I added DimAccount so I could fix the sort order.)
Another option is calculate(distinctcount('Table'[Accounts]), 'Table'[Units Sold] > 1)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 11 |