EMA - RFM Assignment: By: Isha Mishra (C20-066)
EMA - RFM Assignment: By: Isha Mishra (C20-066)
Invoice Number
Quantity
Invoice Date
Customer ID
Invoice Amount.
I did not take stock code, description, unit price as it already comes in the Invoice amount.
I also dropped variable country as it is same for all the data. And even the transaction type
can be easily identified from the invoice amount as positive means purchase and negative
means return.
Assumption:
I have considered purchase and return together and have added both to find the total invoice
amount.
RFM Analysis:
Step-1
Then sum of quantity purchased, sum of invoice amount, count of invoice date and maximum
of invoice date has been found by using pivot table.
Step-3
Then I have taken recent date as 16-06-2011 as the data I have is from 16-05-2011 to 15-06-
2011 to find the most recent visit of the customer.
To find the most recent visit of the customer in the store I substrate the 16-06-2011 from the
max of invoice date found through pivot table
Step – 4
Now we divide the sum of invoice amount, count of Invoice date and recency into 4 parts
using =PERCENTILE.EXC($C$7:$C$2660,I1)
Step – 5
Recency: =IF(F7<=$I$4,5,IF(F7<=$J$4,4,IF(F7<=$K$4,3,IF(F7<=$L$4,2,1))))
Frequency: =IF(D8<=$I$3,1,IF(D8<=$J$3,2,IF(D8<=$K$3,3,IF(D8<=$L$3,4,5))))
Monetary: =IF(C8<=$I$2,1,IF(C8<=$J$2,2,IF(C8<=$K$2,3,IF(C8<=$L$2,4,5))))
Results:
In this I have rated the customers on the scale of 1 to 5 with 1 being worst and 5 being best
customer in terms of recency, frequency and monetary.