cancel
Showing results for 
Search instead for 
Did you mean: 
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
T-Shirt Design Challenge 2023

Power BI T-Shirt Design Challenge 2023

Submit your creative T-shirt design ideas starting March 7 through March 21, 2023.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors