Forum Discussion
Anonymous
4 years agoNot applicable
Marketing conversion chart
Hi ,
I have three tables with information as following:
tablea
| campaign | date | emails_sent |
| AAA | 21-Feb-22 | 222 |
| BBB | 01-Mar-22 | 3333 |
tableb
| campaign | date | contact_id |
| AAA | 21-Feb-22 | 123 |
| AAA | 21-Feb-22 | 456 |
tablec
| product | purchase_date | contact_id |
| abcd | 22-Feb-22 | 123 |
| bcde | 30-Mar-22 | 456 |
I want to plot emails_sent and conversion % for each month
Logic for conversion %
A= Count of contact_id for which the purchase date is after date in tableb but within 15 days of that date for the month
B= emails_sent in the month
%A/B
2 Replies
- amitchandakSuper User
Anonymous , You need join all three tables on common campaign and date tables , Then these just divide or count rows
divide(countrows(A), countrows(b ) )
analyze against common campaign and a larger date range
- AnonymousNot applicable
Thanks but how do I take care of the condition that the purchase date is within 15 days of tableb date?