Skip to content

No. of Actual Customers, and No. of Returning Customers (90 Day Churn Rate)

>> Download the sample (Power BI)

This sample shows:

(i) The number of actual customers that sales have been made to in a given time period (e.g. a month or quarter)

(ii) The number of returning customers that sales have been made to in a given time period (e.g. a month or quarter), where a returning customer is one who has not purchased anything within the last 90 days

No. of Distinct Customers =
DISTINCTCOUNT ( Sales_Table[Customer] )

No. of New Customer (factoring in a 1500 Day Churn Rate)

Section titled “No. of New Customer (factoring in a 1500 Day Churn Rate)”
No. of New Customer (factoring in a 1500 Day Churn Rate) =
VAR CustomerTM =
VALUES ( Sales_Table[Customer] )
VAR PriorCustomers =
CALCULATETABLE (
VALUES ( Sales_Table[Customer] ),
FILTER (
ALL ( Calendar_Table ),
Calendar_Table[Date]
> MIN ( Calendar_Table[Date] ) - 1500
&& Calendar_Table[Date] < MIN ( Calendar_Table[Date] )
)
)
RETURN
COUNTROWS ( EXCEPT ( CustomerTM, PriorCustomers ) )

No. of Returning Customers (based on a 90 Day Churn Rate)

Section titled “No. of Returning Customers (based on a 90 Day Churn Rate)”
No. of Returning Customers (based on a 90 Day Churn Rate) =
VAR CustomerList =
VALUES ( Sales_Table[Customer] )
VAR ChurnDate = 90
RETURN
COUNTROWS (
FILTER (
CustomerList,
CALCULATE (
COUNTROWS ( Sales_Table ),
FILTER (
ALLSELECTED ( Calendar_Table ),
Calendar_Table[Date]
> ( MIN ( Calendar_Table[Date] ) - ChurnDate )
&& Calendar_Table[Date] < MIN ( Calendar_Table[Date] )
)
) = 0
)
)
// evaluating how many customers have returned if no sale in last 90 days
Calendar_Table =
GENERATE (
CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ),
VAR currentDay = [Date]
VAR Day =
DAY ( currentDay )
VAR Month =
MONTH ( currentDay )
VAR Year =
YEAR ( currentDay )
RETURN
ROW ( "Day", day, "Month", month, "Year", year )
)