Forum Discussion
dsd_CS
8 years agoFrequent Visitor
Customer Churn and Retention Calculation - Dynamic range
Hi, I am working on a customer retention calculation and need some help. My problem is related to calculating the denominator. To visualize the problem, I created the below dummy data in excel. ...
- 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
v-ljerr-msft
8 years agoMicrosoft Employee
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
dsd_CS
8 years agoFrequent Visitor
wonderful! That's it!
Now that I see it, it looks very straightforward. This will make a big difference for us.
Thank you!