Forum Discussion
RFM segments
- 4 years ago
HI, HotChilli
thanks for the tip, yesterday I managed to figure it out myself and write such a measure.
I think someone will find this measure usefulSegment RFM = VAR _tab = SELECTCOLUMNS( VALUES('Sales'[ID_USER]), "RFM_Seg",[RFM] ) VAR _Seg = SELECTCOLUMNS(_tab, "#RFM_S", LOOKUPVALUE('Segment'[Segment],Segment[ID_RFM],[RFM_Seg])) return MAXX( _Seg,[#RFM_S])
Hi Dima,
I am had the same issue. But I am wondering if you can share how you segments table looks like. I am still having issues even after connecting segments tbale with my RFm scores. Thank you!
Best,
Nura
- DimaMD4 years ago
Solution Sage
Hi Anonymous save the file, I think you will see everything there
example file pbix
greetings from Ukraine- Anonymous4 years agoNot applicable
Hi Dima,
Thank you very much for sending the above file. It was very useful, however I am still getting the same error that you had. Also, after reviewing your file I realised that you have the same segment name for
each RFM score. Did you happen to fix that? Thank you!
RFM
- DimaMD4 years ago
Solution Sage
Hi Anonymous , Can you provide a sample of your data?