I have generated recency and frequency output in csv format from my RFM model. I wanted to segment that output in this manner;
R1 Between 181 and 360 days
R2 Between 121 and 180 days
R3 Between 61 and 120 days
R4 Between 31 and 60 days
R5 Last 30 days
2) Frequency (number of purchases in the last 12 months):
F1 1 time
F2 Between 2 and 5 times
F3 Between 6 and 9 times
F4 Between 10 and 11 times
F5 12 times or more
I am not able to find a solution on how to create two new calculated columns with the above outputs.
Any help on this will be highly appreciated.
Thank you in advance for the support!
Go to Solution.
Hi @newbie07 Please try these codes to add two columns to your table:
Var _F ='Table'[frequency]
Var _F ='Table'[recency]
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your Kudos !!
View solution in original post
Hi @newbie07 ,
You want to create two seperate columns for frequency and recency?One with F1, F2 .... other with 1 time, Between 2 and 5 times...?
Is this what you want?
Yes, Two seperate columns for frequency and recency?
this is my sample data;
frequency recency1 1791 1581 612 822 314
Output should be like this,
frequency recency Frequency_label Recency_label1 179 F1 R21 158 F1 R21 61 F1 R32 82 F2 R32 314 F2 R1
Click here to read more about the December 2021 Updates!
Mark your calendars and join us for our next Power BI Dev Camp!
Learn how to create your own user groups today!