Schema Theory

← Back to KPIs & Dashboards

Customer Acquisition Cost (CAC)

Description

Customer Acquisition Cost (CAC) measures the average cost of acquiring a new customer over a defined period. It includes all sales and marketing expenses associated with customer acquisition, divided by the number of new customers acquired during that time.

Visual Example

CAC Visual

DAX Formula

CAC = 
DIVIDE(
    SUM(MarketingSpend[Cost]),
    DISTINCTCOUNT(CustomerAcquisition[CustomerID])
)          

SQL Statement

SELECT
  d.Month,
  d.MonthID,
  SUM(ms.Cost) AS TotalMarketingSpend,
  COUNT(DISTINCT ca.CustomerID) AS CustomerAcquisitions,
  SUM(ms.Cost) * 1.0 / NULLIF(COUNT(DISTINCT ca.CustomerID), 0) AS CAC
FROM
  DimDate d
LEFT JOIN MarketingSpend ms
  ON ms.SpendDate = d.Date
LEFT JOIN CustomerAcquisition ca
  ON ca.AcquisitionDate = d.Date
GROUP BY
  d.Month,
  d.MonthID
ORDER BY
  d.MonthID  

Usage Notes

Downloads