Good day,
I have 3 columns: Customer ID, Product ID and Purchase Date.
I want a 4th column for Order type with 2 values: "First Order" and "Recurring order"
Task: Identify the 1st order in the last 12 months for a specific Product ID purchased by the same company, to understand what is the first buy vs subscription.
Been breaking my head trying to sort this, so hoping someone can tell me the best way to do this. Big dataset and each company has a multitude of orders, often for the same product. In short, i need to identify the first order date for each "Company ID" and "Product ID" match and return the first order as "New Order" and subsequent orders of the same product under the same company as "Recurring".
Cheers!
I have 3 columns: Customer ID, Product ID and Purchase Date.
I want a 4th column for Order type with 2 values: "First Order" and "Recurring order"
Task: Identify the 1st order in the last 12 months for a specific Product ID purchased by the same company, to understand what is the first buy vs subscription.
Been breaking my head trying to sort this, so hoping someone can tell me the best way to do this. Big dataset and each company has a multitude of orders, often for the same product. In short, i need to identify the first order date for each "Company ID" and "Product ID" match and return the first order as "New Order" and subsequent orders of the same product under the same company as "Recurring".
Cheers!