Customer churn rate: formula, DAX and pitfalls

How to calculate customer churn rate, customers lost in a period divided by customers at the start, for subscriptions and for shops without contracts, monthly against annual churn, revenue churn, the DAX on a subscriptions table and on orders, and how to see why customers leave.

Short answer: customer churn rate = customers lost during a period / customers at the start of the period. New customers who joined and left in the same period are usually left out of both. With 2,000 customers on 1 September and 50 cancellations, monthly churn is 2.5%. Monthly and annual churn do not convert by multiplying by 12: annual = 1 - (1 - monthly)^12, so 2.5% a month is 26% a year. Without contracts (a shop), define churn by inactivity: no order for a set number of days.

Churn is the leak in the bucket: growth means winning customers faster than you lose them. A 1-point drop in monthly churn is often worth more than a big acquisition campaign.

How is it calculated?

MonthAt startNewChurnedAt endChurn rate
Jul1,900120521,9682.7%
Aug1,968110482,0302.4%
Sep2,030105502,0852.5%
Subscribers by month
01234AprMayJunJulAugSep
Monthly churn rate (%)

What is the DAX for subscriptions?

A Subscriptions table has one row per customer subscription with Start Date and End Date (blank while active). Neither date is related to the Date table; the measures read the selected period:

Customers at Start =
VAR PStart = MIN ( 'Date'[Date] )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( Subscriptions[Customer ID] ),
        Subscriptions[Start Date] < PStart,
        OR ( ISBLANK ( Subscriptions[End Date] ), Subscriptions[End Date] >= PStart )
    )

Churned Customers =
VAR PStart = MIN ( 'Date'[Date] )
VAR PEnd = MAX ( 'Date'[Date] )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( Subscriptions[Customer ID] ),
        Subscriptions[Start Date] < PStart,
        Subscriptions[End Date] >= PStart,
        Subscriptions[End Date] <= PEnd
    )

Churn Rate = DIVIDE ( [Churned Customers], [Customers at Start] )

Annual Churn from Monthly = 1 - POWER ( 1 - [Churn Rate], 12 )

The filters on Start Date and End Date are boolean filters on one column each; OR keeps them in one filter on End Date. A customer with several subscriptions counts as churned only when all end: handle that by building a customer-level table (first start, last end) first.

What is churn for a shop without contracts?

Define an inactivity window that fits the buying cycle, for example 180 days:

Active Customers 180d =
VAR D = MAX ( 'Date'[Date] )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( Sales[Customer ID] ),
        DATESBETWEEN ( 'Date'[Date], D - 179, D )
    )

-- active in the 180 days before the period, not active in the 180 days up to its end
Lapsed Customers =
VAR PStart = MIN ( 'Date'[Date] )
VAR PEnd = MAX ( 'Date'[Date] )
VAR Before = CALCULATETABLE ( VALUES ( Sales[Customer ID] ), DATESBETWEEN ( 'Date'[Date], PStart - 180, PStart - 1 ) )
VAR Recent = CALCULATETABLE ( VALUES ( Sales[Customer ID] ), DATESBETWEEN ( 'Date'[Date], PEnd - 179, PEnd ) )
RETURN COUNTROWS ( EXCEPT ( Before, Recent ) )

EXCEPT keeps the customers who bought before and not recently.

What about revenue churn?

Customer churn counts heads; revenue churn (lost recurring revenue / recurring revenue at start) weighs them. Losing ten small customers and one large one can be 1% customer churn and 8% revenue churn. Subscription businesses track both, plus net revenue retention.

How do you find out why customers leave?

  • Churn by cohort (when they joined): see cohort retention.
  • By plan, channel, region: where is it highest?
  • By cancellation reason from the cancel form.
  • Key influencers on a customer table with a Churned column.

What goes wrong?

  • Dividing by customers at the end. The end includes new customers; divide by the start.
  • Multiplying monthly churn by 12. Use 1 - (1 - monthly)^12.
  • Counting paused or downgraded customers as churned. Define it once and write it down.
  • Small bases. 2 of 40 is 5%; show counts next to rates.

Where can you check this?

Where do you start?

Write down your churn definition (who counts, from when), build Customers at Start and Churned Customers, and show the monthly rate with counts. Cohort retention shows when in the lifetime customers leave.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.