- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count Customers who purchased more than X Units - Total not filtered
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
Proud to be a Super User!
daxformatter.com makes life EASIER!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
Proud to be a Super User!
daxformatter.com makes life EASIER!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another option is calculate(distinctcount('Table'[Accounts]), 'Table'[Units Sold] > 1)

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
09-13-2024 01:56 PM | |||
10-22-2024 06:35 AM | |||
03-25-2024 02:22 AM | |||
08-07-2024 11:36 AM | |||
05-07-2024 08:16 AM |
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |