Forum Discussion
Anonymous
4 years agoNot applicable
Cumulative Calculation help needed for Churned Customer Rate
I am working on creating Customer Churn Rate Measure using the below logic: For example: we want to compute Churn Rate in the Month of March, 2022. Churn Calculation: - There are 10,000 Users ...
- 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.
v-kkf-msft
Community Support
4 years agoHi 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.