DAX Challenge 2 - Marketing Campaign Success

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 10

ExcelFort DAX Challenge 2 - Marketing Campaign Success

There is a table of in-app purchases by users. In a marketing campaign, users who make their firs
in-app purchase see a call-to-action to make more in-app purchases.

>> Count the number of users who made additional in-app purchases as a result of the
marketing campaign.

Scenario
X User: 28 - 1 Item 1 date of purcahse (not included )
X User: 49 - Muplitple products one date of purcahse (not included)
X USer: 50 - 1 product multiple dates (not included)
X User: 25 - Multiple products multiple dates but same products as the 1st date of purchase (Not include)
√ User: 46 - Multiple dates multiple products (Included )

User ID Purchase Date Product ID Quantity Price


10 1-Jan-19 101 3 55
10 2-Jan-19 119 5 29
10 31-Mar-19 111 2 149
11 2-Jan-19 105 3 234
11 31-Mar-19 120 3 99
12 2-Jan-19 112 2 200
12 31-Mar-19 110 2 299
13 5-Jan-19 113 1 67
13 31-Mar-19 118 3 35
14 6-Jan-19 109 5 199
14 6-Jan-19 107 2 27
14 31-Mar-19 112 3 200
15 8-Jan-19 105 4 234
15 9-Jan-19 110 4 299
15 31-Mar-19 116 2 499
16 10-Jan-19 113 2 67
16 31-Mar-19 107 4 27
17 11-Jan-19 116 2 499
17 31-Mar-19 104 1 154
18 12-Jan-19 114 2 248
18 12-Jan-19 113 4 67
19 12-Jan-19 114 3 248
20 15-Jan-19 117 2 999
21 16-Jan-19 105 3 234
21 17-Jan-19 114 4 248
22 18-Jan-19 113 3 67
22 19-Jan-19 118 4 35
23 20-Jan-19 119 3 29
24 21-Jan-19 114 2 248
25 22-Jan-19 114 2 248
25 22-Jan-19 115 2 72
25 24-Jan-19 114 5 248
25 27-Jan-19 115 1 72
26 25-Jan-19 115 1 72
27 26-Jan-19 104 3 154
28 27-Jan-19 101 4 55
29 27-Jan-19 111 3 149
30 29-Jan-19 111 1 149
31 30-Jan-19 104 3 154
32 31-Jan-19 117 1 999
33 31-Jan-19 117 2 999
34 31-Jan-19 110 3 299
35 3-Feb-19 117 2 999
36 4-Feb-19 102 4 82
37 5-Feb-19 102 2 82
38 6-Feb-19 113 2 67
39 7-Feb-19 120 5 99
40 8-Feb-19 115 2 72
41 8-Feb-19 114 1 248
42 10-Feb-19 105 5 234
43 11-Feb-19 102 1 82
43 5-Mar-19 104 3 154
44 12-Feb-19 105 3 234
44 5-Mar-19 102 4 82
45 13-Feb-19 119 5 29
45 5-Mar-19 105 3 234
46 14-Feb-19 102 4 82
46 14-Feb-19 102 5 29
46 9-Mar-19 102 2 35
46 10-Mar-19 103 1 199
46 11-Mar-19 103 1 199
47 14-Feb-19 110 2 299
47 11-Mar-19 105 5 234
48 14-Feb-19 115 4 72
48 12-Mar-19 105 3 234
49 18-Feb-19 106 2 123
49 18-Feb-19 114 1 248
49 18-Feb-19 112 4 200
49 18-Feb-19 116 1 499
50 20-Feb-19 118 4 35
50 21-Feb-19 118 4 29
50 13-Mar-19 118 5 299
50 14-Mar-19 118 2 199
51 21-Feb-19 120 2 99
51 13-Mar-19 108 4 120
52 23-Feb-19 117 2 999
52 18-Mar-19 112 5 200
53 24-Feb-19 120 4 99
53 19-Mar-19 105 5 234
54 25-Feb-19 119 4 29
54 20-Mar-19 110 1 299
55 26-Feb-19 117 2 999
55 20-Mar-19 117 5 999
56 27-Feb-19 115 2 72
56 20-Mar-19 116 2 499
57 28-Feb-19 105 4 234
57 28-Feb-19 106 1 123
57 20-Mar-19 108 1 120
57 20-Mar-19 103 1 79
58 28-Feb-19 104 1 154
58 1-Mar-19 101 3 55
58 2-Mar-19 119 2 29
58 25-Mar-19 102 2 82
59 4-Mar-19 117 4 999
60 5-Mar-19 114 3 248
61 26-Mar-19 120 2 99
62 27-Mar-19 106 1 123
63 27-Mar-19 120 5 99
64 27-Mar-19 105 3 234
65 27-Mar-19 103 4 79
66 31-Mar-19 107 2 27
67 31-Mar-19 102 5 82
Details
> Marketing campaigns begin one day after the initial in-app purchase  
users who make their first
> Users who only purchased one or multiple products on the first day are not counte
> To be considered in the marketing campaign, users must purchase a product that i
as a result of the from what they bought on their first purchase date  

Solution Approach
Step 1 : Findout the 1st date of purchase for each user
Step 2: Identify the products on the 1st date of purchase
Step 3: Identify the products after the 1st date of purchase
e (Not include) Step 4: Count the number of products in Step 3 that aren't present in Step 2
Step 5: Count the user who has atleast one product in Step 4
Scenario
X User: 28 - 1 Item 1 date of purcahse (not included )
X User: 49 - Muplitple products one date of purcahse (not included)
X USer: 50 - 1 product multiple dates (not included)
X User: 25 - Multiple products multiple dates but same products as the 1st date of p
√ User: 46 - Multiple dates multiple products (Included )
-app purchase  
the first day are not counted  
st purchase a product that is different

't present in Step 2


ot included)
products as the 1st date of purchase (Not include)

You might also like