Hi there! I have a table like below:
<tbody>
</tbody>
I'd like to answer:
Average number of days between orders of a customer
How do I first group orders by each unique customer, find the days between their orders, then find the average?
Thanks for the help guys and gals!
Order Date | Brand | Product ID | Customer ID | Supermarket | Sales Volume | Sales Value ($) |
01/09/2016 | Company A | 3431 | 345452 | Supermarket B | 5 | 10 |
02/09/2016 | Company A | 3524 | 243784 | Supermarket B | 2 | 4 |
02/09/2016 | Company B | 3122 | 345452 | Supermarket A | 1 | 2 |
<tbody>
</tbody>
I'd like to answer:
Average number of days between orders of a customer
How do I first group orders by each unique customer, find the days between their orders, then find the average?
Thanks for the help guys and gals!