Forum Discussion
New Customers with order over a certain value - shopify data
- 8 years ago
Hi JackEnviro,
The formula below assumes that Created Date is column is when an order was created so any row that matches the earliest created date by customer and where Full Order = Full is the New Order.
New Order? = VAR FirstOrderDate = CALCULATE ( MIN ( ShopifyValues[Created Date ] ), ALLEXCEPT ( ShopifyValues, ShopifyValues[Customer ID] ), ShopifyValues[Customer ID] = EARLIER ( ShopifyValues[Customer ID] ) ) RETURN IF ( ShopifyValues[Full Order] = "Part", "N/A", IF ( FirstOrderDate = ShopifyValues[Created Date ] && ShopifyValues[Full Order] = "Full", "New", "Return" ) )
JackEnviro,
Please share sample data of your tables and post expected result based on the sample data here.
Regards,
Lydia
- JackEnviro8 years ago
Helper I
Hi Lydia
Thanks for responsing.
Hopefully this file with some anonymised sample data. I've incuded what I hope the output to look like and some of the current measures and calculated columns. I am looking for a way to categorise a customer as "New" or "Repeat" for an order over £250 so can look at the net margin on that basis, as many customers order samaple packs or small quantities I've looked to exclude small or low value orders.
https://www.dropbox.com/s/12015rte5offmx0/New%20vs%20Repeat%20margin%20by%20product.xlsx?dl=0
Thanks
Jack
- danextian8 years ago
Super User
Hi JackEnviro
A question: for the first order, a customer is considered new and in the succedding orders a repeat?
- JackEnviro8 years ago
Helper I
Hi Danextian
Yes for the first Order over £250 value they are considered new and for all successive order repeat.
Thanks
Jack