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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Count of Duplicate Values (Count) of each Order in Power BI

Hello - I need help counting the same order no of each order serial. Below is the DAX I created but it is not giving me the count result of each order serial.

 

Count = CALCULATE(count(Table1[Order No]),ALLEXCEPT(Table1,Table1[Order No]))

 

Thanks

 

Attached is the PBIX Data. Click Here

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @gauravnarchal 

 I make  a change on your code:

Count Order No = COUNTAX(FILTER(Table1,Table1[Order No]=EARLIER(Table1[Order No])&&Table1[ID]=EARLIER(Table1[ID])),[Order No])

Is  this the output you want?

vxinruzhumsft_0-1670292498216.png

 

Best Regards,

Yolo Zhu

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

View solution in original post

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @gauravnarchal 

 I make  a change on your code:

Count Order No = COUNTAX(FILTER(Table1,Table1[Order No]=EARLIER(Table1[Order No])&&Table1[ID]=EARLIER(Table1[ID])),[Order No])

Is  this the output you want?

vxinruzhumsft_0-1670292498216.png

 

Best Regards,

Yolo Zhu

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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