Forum Discussion
Customer Churn and Retention Calculation - Dynamic range
- 8 years ago
Hi dsd_CS,
If I understand you correctly, the formula below should work in your scenario. :smileyhappy:
Retention Denominator 2 = CALCULATE( DISTINCTCOUNT('dummy data - customers'[customer ID]), FILTER( ALL('dummy data - customers'), 'dummy data - customers'[Time since first order YEAR] >= MAX('dummy data - customers'[Customer lifetime]) && 'dummy data - customers'[Customer lifetime] >= 0 ))Regards
Hi v-ljerr-msft,
thank you for your reply. It's a very simple data model. I created some mock data to download here:
https://tobii-my.sharepoint.com/:u:/p/dsd/EeI6VQJ4hFhDtT3v8baG5kIBB7hQcU_4d3e2LZfPrjYrvQ?e=WBrAnn
I added a few visualizations to show the different steps. As you can see in visualization "Number of possible customers per lifetime year" my measure doesn't work. It shows the same number in every column. Whereas what I want is that it gives me a cumulative value where "time since first order" is greater or equal "customer lifetime" at lifetime 0.
Hello,
The link to your mock data is not visible anymore hence I can't follow step by step the solution to your problem (mine too).
Could you please upload the file to a new location?
Best
QS