Overview
Cohort analysis groups customers by their first purchase month and tracks how many return in M0, M1, M2… (months since that first purchase). You build calculated columns on Orders, then a matrix visual for retention.
Build retention matrices with cohort month distance.
On this page
Cohort analysis groups customers by their first purchase month and tracks how many return in M0, M1, M2… (months since that first purchase). You build calculated columns on Orders, then a matrix visual for retention.
FirstPurchaseDate =
CALCULATE(
MIN ( Orders[OrderDate] ),
ALLEXCEPT ( Orders, Orders[CustomerID] )
)CohortMonth =
EOMONTH ( Orders[FirstPurchaseDate], 0 )MonthDistance =
DATEDIFF (
Orders[CohortMonth],
EOMONTH ( Orders[OrderDate], 0 ),
MONTH
)CohortPeriod =
"M" & Orders[MonthDistance]Example Retention Snapshot
| CohortMonth | M0 | M1 | M2 | M3 |
|---|---|---|---|---|
| Jan 2024 | 500 | 210 | 150 | 120 |
| Feb 2024 | 420 | 180 | 130 | — |
| Mar 2024 | 600 | 240 | — | — |
Each row is a acquisition cohort. M0 is customers in their first month (always the largest). M1 shows how many of that same cohort placed another order one month later—drop-off from 500 to 210 signals retention opportunity. Diagonal blanks are future months not yet observed. Compare M1/M0 across cohorts to see if recent acquisitions retain better than older ones.