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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
abhishekc
New Member

count orders by customer in a day based on time interval

Hi all,

 

need help with the following :

 

treat orders by same clientid in a 10 minute interval as one order

 

Order_idClient_idDOORTrayDate
OD0001CL0001AA102/10/2019, 11:10:10
OD0002CL0002BB302/10/2019, 11:13:41
OD0002CL0002BB702/10/2019, 11:13:41
OD0003CL0002AA402/10/2019, 11:17:34
OD0004CLOOO3BB302/10/2019, 12:38:34
OD0005CL0004CC102/10/2019, 13:21:34
OD0006CL0002BB702/10/2019, 13:23:41
     
     
     
expected output    
number of ordersnumber of clients   
54   
since, we are counting all orders made by a customer within a ten minute interval as one order, therefore , OD0001 AND OD0003 ARE COUNTED AS ONE ORDER    
     
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors