You can analyze this using the customer lifetime value. This shows you the amount a customer spends with you within their customer lifecycle. Based on this amount, you can estimate what revenue you are losing due to the lost customer or whether it is profitable.