Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
FrederickRoxas
Regular Visitor

Customer Churn Decile Formula

Can you please help to create a Power BI Formula for Customer Churn Decile (0-1)

 

Churn DecileCountChurn Rate
 2,490,57132.11%
 826,77410.66%
 465,1306.00%
 349,4514.51%
 297,7773.84%
 261,4673.37%
 242,7713.13%
 257,7943.32%
 325,8984.20%
 1,906,94624.59%
 331,1574.27%
Total7,755,736100.00%
1 ACCEPTED SOLUTION
Sahir_Maharaj
Super User
Super User

Hello @FrederickRoxas,

 

Can you please try this:

 

1. Rank Customers Based on Churn Probability

Churn Rank = RANKX(ALL(Customers), Customers[ChurnProbability],, DESC, Dense)

2. Assign Decile Based on Rank

Decile = 
VAR TotalCustomers = COUNTROWS(Customers)
VAR DecileSize = TotalCustomers / 10
RETURN CEILING(Customers[Churn Rank] / DecileSize, 1)

3. Calculate Churn Rate for Each Decile

Decile Churn Rate = 
DIVIDE(
    SUMX(
        FILTER(Customers, Customers[Decile] = SELECTEDVALUE(Customers[Decile])),
        Customers[HasChurned]
    ),
    COUNTROWS(FILTER(Customers, Customers[Decile] = SELECTEDVALUE(Customers[Decile]))),
    BLANK()
)

 Hope this helps!


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution?
➤ Lets connect on LinkedIn: Join my network of 13K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

View solution in original post

3 REPLIES 3
FrederickRoxas
Regular Visitor

Kudos

Sahir_Maharaj
Super User
Super User

Hello @FrederickRoxas,

 

Can you please try this:

 

1. Rank Customers Based on Churn Probability

Churn Rank = RANKX(ALL(Customers), Customers[ChurnProbability],, DESC, Dense)

2. Assign Decile Based on Rank

Decile = 
VAR TotalCustomers = COUNTROWS(Customers)
VAR DecileSize = TotalCustomers / 10
RETURN CEILING(Customers[Churn Rank] / DecileSize, 1)

3. Calculate Churn Rate for Each Decile

Decile Churn Rate = 
DIVIDE(
    SUMX(
        FILTER(Customers, Customers[Decile] = SELECTEDVALUE(Customers[Decile])),
        Customers[HasChurned]
    ),
    COUNTROWS(FILTER(Customers, Customers[Decile] = SELECTEDVALUE(Customers[Decile]))),
    BLANK()
)

 Hope this helps!


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution?
➤ Lets connect on LinkedIn: Join my network of 13K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Thank you so much.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.