Forum Discussion
Cumulative Calculation help needed for Churned Customer Rate
- 4 years ago
Hi Anonymous ,
Please try the following measures:
First Date = IF ( HASONEVALUE ( Orders[Month] ), FIRSTDATE ( DATESINPERIOD ( Orders[order_date], FIRSTDATE ( Orders[order_date] ), -1, YEAR ) ) )Last Date = IF ( HASONEVALUE ( Orders[Month] ), LASTDATE ( DATESINPERIOD ( Orders[order_date], LASTDATE ( Orders[order_date] ), -1, YEAR ) ) )Firstdate_125 = IF ( HASONEVALUE ( Orders[Month] ), FIRSTDATE ( DATESINPERIOD ( Orders[order_date], MAX ( Orders[order_date] ), -126, DAY ) ) )User Base = AVERAGEX ( VALUES ( Orders[Month] ), CALCULATE ( DISTINCTCOUNT ( Orders[Users] ), DATESBETWEEN ( 'Date'[Fiscal Date], [First Date], [Last Date] ), ALL ( Orders ) ) )Bought in 125 Days = AVERAGEX ( VALUES ( Orders[Month] ), CALCULATE ( DISTINCTCOUNT ( Orders[Users] ), DATESBETWEEN ( 'Date'[Fiscal Date], [Firstdate_125], [Lastdate_125] ), ALL ( Orders ) ) )Churned Users = [User Base] - [Bought in 125 Days]Churn_rate = AVERAGEX ( VALUES ( Orders[Month] ), DIVIDE ( [Churned Users], [User Base] ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous , refer the formula in these blogs , they can help
Customer Retention Part 5: LTD Vs Period Retention
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497
Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529
Customer Retention Part 2: Period over Period Retention :https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458