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

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.

Reply
DaanBos
Frequent Visitor

How to count duplucates in DAX?

Dear Users,

 

I want to count every consigment for each customer.

 

DaanBos_0-1675420720190.png

I tried the following DAX Code:

 

Count_consignments_per_Customer = CALCULATE(COUNT(CONSIGNMENT[CONSIGNMENT_NR]), ALLEXCEPT(CUSTOMER,CUSTOMER[CUSTOMERNO]))
 
But it returns the value 1 everytime.
 
Pls help
2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @DaanBos 

 

Can you provide more sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

Hi @DaanBos 
Please try

Count_consignments_per_Customer =
CALCULATE (
    COUNT ( CONSIGNMENT[CONSIGNMENT_NR] ),
    ALLEXCEPT ( CONSIGNMENT, CUSTOMER[CUSTOMERNO] )
)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.