Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: tessamWhat we would like to do is have a look backwards to see if an account number had purchased prior to the event. Then, if they purchase during the month of the event and any time after, we want to count that as a conversion. If the account number didn't "show up" having purchased prior to the event but then did appear in our data after the event, then we could count that as a conversion.
Essentially we want to count the number of accounts who "converted" into becoming a buyer of defined products following our event.
There are several different sources of data in this graph and for the sake of confidentiality, I cannot share the raw data.
Originally posted by: stonysmith
I'm not quite sure what you're asking to do.. it would help to see some sample data.
Making some assumptions:
If you sort by Account and Event then run an AGG per Account, you could calculate:
1) Number of Purchases
2) Date of most recent Purchase
Then, you could filter down to the accounts that have more than one purchase and where the most recent purchase was in the last month:
c=count()
last=groupMax(PurchaseDate)
emit *
where lastInGroup and c>1 and last > date().dateAdjust(-1,"months")