Skip to main content

RFM Segmentation

Source


You must be aware of various customer segmentation techniques and analyses. Let's discuss one of the most important analyses today i.e. RFM Segmentation. What is this 3 letter term can do? The answer is it can do wonders let's get to know more about it. RFM analyses are the method of separating your customers based on RFM scores which will help you in identifying your best customers and lost customers. RFM is an acronym for Recency, Frequency, and Monetary. The main idea behind this analysis is to understand your customers well because it will separate your customers based on how recently your customer made any purchase, how often they are buying, and what is the average cost of their orders.

RFM analyses can be performed in various analytical and programming tools such as Python, R, and Excel. I have done it in Excel on sample data. How to do it in Excel? 

  • Select the right data and insert a pivot table and select the pivot table field accordingly in my case I have selected the product ID, customer ID, profit, and recency.


  • Now we need to obtain the RFM score to categorize the customers for that you need to obtain quartiles of your data set separately for recency, monetary, and frequency for that we will use Quartile.inc($data$range, 0 to 4 )


  • Add columns separately for r score, f score, and m score. These scores can be obtained by nested IFs formula. After obtaining all scores use a simple formula to obtain rfm score i.e. R score*100 + F score *10 + M score*1.
R Score =IF(B4>128;1;IF(AND(B4<=128;B4>82);2;IF(AND(B4<=82;B4>38);3;IF(B4<=38;4))))
Column B represents the recency.


Based on your RFM score you can segregate your customer using nested IFs and quartile.inc. If we consider this analysis it is based on the behavior history of any customer which can change in the future. In that case, you can't totally rely on such analyses for that there are many other advanced customer segmentation techniques that are based on predictive analytics. Also, this analysis is mainly focused on 3 variables (recency, frequency, and monetary) which are vital but there can be other variables in different datasets that should be considered for customer segmentation. Your method can differ depending on your dataset but the idea will remain the same.

Overall such analysis is highly data-driven in nature and allows us to make informed decisions. Strategies can be made by focusing on different groups which will help any organization to improve the customer retention rate and engagement rate. 

Thanks for Reading  Let's connect on  LinkedIn






Comments

Popular posts from this blog

Ultimate Beginners Guide to DAX Studio

There are zillions of external tools available with Power BI but DAX Studio is one of the most commonly used tools to work with DAX queries. It is a perfect tool to optimize the DAX and the data model. In this blog let's shed some light on the basic functionalities that can take your report to the next level. ARE YOU READY?  To start you will need the latest version of the DAX Studio. You can download it from their website . Don't worry you don't have to pay for the license. Fortunately, DAX Studio is a free tool As a BI Developer, I am using DAX Studio regularly. Based on my experience I use it for several purposes but in this blog, I will highlight the most common ones. Extracting a dump of all the measures used in your PBIX. Why do we need to do this? It can be used for documentation purposes also sometimes we try to reuse the DAX and such a dump comes in handy in this scenario. How to achieve it? Open the DAX Studio it is located under the external tools once you open t

Append v/s Merge in Power BI

Let's discuss another problem of the week. As a Power BI user, there are times when you want to combine queries. What are the ways to do so? In most cases, you can attain it by using either append or merge and both serve different purposes. Let's understand what do these terms mean in Power BI and how they are functionally different from each other.  It is quite common to get data from various sources and you need to combine those data depending on a particular column which is common in both tables so that you can add extra information or column to your big table. In such cases, we use merge queries. How to perform merge queries? For instance, I am considering Sample Superstore data and we will merge the returns table to the order table. You will find both merge and append in the home tab in extreme right in the power query editor. ProTip - You will find two options when you click on the drop-down in merge which are merge queries and merge queries as new. When you use merge que

Use Relationship in DAX

Data modeling is an essential part of creating perfect visuals. While creating complex data models there can be a case where you can find an inactive relationship represented by dotted lines and it occurs because you already have an active relationship between the two tables. But as a developer, you need to use both the relationship. How can it be done? You can use "Use Relationship" in such cases. Use relationship can be added to your DAX and act as a modifier or enhancer for calculation. It activates the inactive relation. But make sure you have an inactive relationship in place before using the use relationship function. Let's see how it works on Sample Superstore data. In my fact table I have two dates- Order date and Ship date. I am making the two relations between my date table and fact table. The relation between the sample superstore (date) to date table (date) is active while the relation between the sample superstore (ship date) to date table (date) is inactive