Hello,
I have an e-commerce client with a set of data that would like to “count” the converted to alternate purchase method, recovered clients along with the purchase method and conversion/recovery made by.
Converted to alternate purchase method = Clients who had a rejected/declined/error initial purchase attempt followed by a successful purchase with a different purchase method i.e initial failed purchase with credit card, followed by a successful purchase via Bitcoin
Recovered = Clients who had a rejected/declined/error initial purchase attempt followed by a successful purchase using the same purchase method. i.e initial failed purchase with credit card, followed by a successful purchase via credit card.
By = If the field has the clients name, it means the client did it himself, if the is a name is listed, it means the purchase was made by one of the agents.
The request is to possible list the data in chronological order by client and the number of conversions and recoveries and the purchase method.
I have attached a file with some of the data he is able to extract.
The key to account conversions/recoveries is that there must be a decline followed by a successful.
Sample:
D = Decline Purchase
S = Successful Purchase
Client A on day X had a D, D, D, S, S, S, D, S, D,S, S, D,S
Based on the purchase events and assuming that all Successful were using a different method (Bitcoin).
We expect to generate a report with a summary like:
Client A had 4 Bitcoin Conversions
Or
Client A had. 2 Bitcoin Conversions and 2 Credit card recoveries.
Or
Client A had 3 Bitcoins Conversions and 1 Credit card recovery
O
Client A had 4 Credit card recoveries.
I would really appreciate if you let us know if we can achieve this with a formula or any SQL query.
Thank you in advance
Bookmarks