cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jdelacrettaz
Frequent Visitor

Add number of invoices by date

hello, I have a table where all the sales are per day, in a column I have the invoice numbers that are repeated depending on how many items I buy. My question is this, I want to make a measure where you tell me the amount of sales that were made per day, I pass an image. If someone can help me I would be so thankful

 

invoice numberdate
111128/09/2019
111128/09/2019
111228/09/2019
111301/10/2019
111402/10/2019
111402/10/2019
Result
  
 quantity sold
28/09/20193
01/10/20191
02/10/20191
1 ACCEPTED SOLUTION
Greg_Deckler
Super User IV
Super User IV

@jdelacrettaz - You could use the built-in Count (Distinct) aggregation. If you really want a measure, then you should be able to do this:

 

Measure = COUNTROWS(DISTINCT('Table'[invoice number]))

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
Greg_Deckler
Super User IV
Super User IV

@jdelacrettaz - You could use the built-in Count (Distinct) aggregation. If you really want a measure, then you should be able to do this:

 

Measure = COUNTROWS(DISTINCT('Table'[invoice number]))

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors