Problems / Monthly Retention Analysis / Editorial
MIN(DATE_TRUNC('month', activity_date))
month_number
Cohort retention analysis tracks how user engagement decays over time from their initial activity. This is a foundational metric in product analytics. The pattern combines DATE_TRUNC for period alignment, DATEDIFF for offset computation, and self-joins for comparing against baseline cohort sizes.
DATE_TRUNC
DATEDIFF
Solve Monthly Retention Analysis yourself →