Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
etane
Resolver I
Resolver I

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:

etane_0-1713824361759.png

 

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.

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

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.

 

etane.pbix

(In the model I added DimAccount so I could fix the sort order.)



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

3 REPLIES 3
gmsamborn
Super User
Super User

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.

 

etane.pbix

(In the model I added DimAccount so I could fix the sort order.)



Proud to be a Super User!

daxformatter.com makes life EASIER!

@GS 

Thanks!  Works like a charm.

Anonymous
Not applicable

Another option is calculate(distinctcount('Table'[Accounts]), 'Table'[Units Sold] > 1)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.