Repeat Purchase Cohort Analysis

This dataset provides a detailed view of customer retention and repeat purchase behavior by grouping customers into cohorts based on their initial purchase date. It tracks key metrics such as repeat purchase rates, monetary value, and customer activity status, enabling businesses to evaluate the effectiveness of retention strategies and loyalty programs. The structure supports granular analysis of cohort performance over time.

  • last updated 12 Jul 2025
  • by GoMask
The brief that made it

Analyzing customer retention and repeat purchase trends by cohort

Sample rows

preview · 8 of 120 rows · all 12 columns
cohort_idstringpurchase_value_totalfloatis_active_customerbooleancohort_start_datedatecohort_end_datedatecustomer_idstringfirst_purchase_datedatetotal_purchasesintegerrepeat_purchasesintegerlast_purchase_datedatecohort_periodintegerrepeat_purchase_valuefloat
2023-0147.2false2023-01-012023-01-31CUST100012023-01-15102023-01-1500
2023-01109.85false2023-01-012023-01-31CUST100022023-01-29212023-06-08568
2023-01212.4false2023-01-012023-01-31CUST100032023-01-02432023-03-252170.55
2023-01378.75true2023-01-012023-01-31CUST100042023-01-11542024-01-0812310.25
2023-0225.99false2023-02-012023-02-28CUST100052023-02-14102023-02-1400
2023-0268.5false2023-02-012023-02-28CUST100062023-02-05212023-03-01132
2023-02152.45false2023-02-012023-02-28CUST100072023-02-27322023-07-105101
2023-02498.9true2023-02-012023-02-28CUST100082023-02-10652024-02-0412426.8

What the 120 rows show

from the 120-row sample
  • 38%is_active_customer = true
  • 70.4median purchase_value_total
  • 2median total_purchases
  • 1median repeat_purchases
  • 1median cohort_period
  • 32.0median repeat_purchase_value
purchase_value_total120 rows, in bands of 100
040808020936020400700purchase_value_total →

Median 70.4, from 18.7 to 621.8.

12 columns by typefrom the column list below
  • string 2
  • integer 3
  • float 2
  • date 4
  • boolean 1

Columns

12 columns in four groups
blueprint · 12 columns
columntypedescriptionexample
Text 2 columns
cohort_idstringUnique identifier for the customer cohort, typically based on the cohort's start date or period.unique2023-01
customer_idstringUnique identifier for the customer who belongs to this cohort.CUST10001
Numbers 5 columns
total_purchasesintegerTotal number of purchases made by the customer since their first purchase.1 or more1
repeat_purchasesintegerNumber of purchases made by the customer after their initial purchase.0 or more0
cohort_periodintegerNumber of periods (e.g., months) since the cohort's start date when the purchase occurred (0 = first period, 1 = second period, etc.).0 or more0
purchase_value_totalfloatTotal monetary value of all purchases made by the customer since their first purchase.0 or more47.2
repeat_purchase_valuefloatTotal monetary value of repeat purchases (excluding the first purchase).0 or more0
Dates and times 4 columns
cohort_start_datedateThe date representing when the cohort's first purchase period begins (e.g., first day of month).2023-01-01
cohort_end_datedateThe date representing when the cohort's first purchase period ends (e.g., last day of month).2023-01-31
first_purchase_datedateThe date of the customer's first purchase, used to assign them to a cohort.2023-01-15
last_purchase_datedateThe date of the customer's most recent purchase.optional2023-01-15
True or false 1 column
is_active_customerbooleanIndicates if the customer has made a purchase within the most recent analysis period.false

Use it for

  • is active cust…38%45 of 120 rows

    An e-commerce dashboard

    The is_active_customer rate and purchase_value_total. Excel, Power BI or Tableau.

  • Why do 45 of 120 rows have is_active_customer = true?

    A class exercise

    Hand out the rows and one question. Everyone works from the same 120 rows.

  • A software demo

    Believable cohorts with cohort_start_date, cohort_end_date and customer_id to fill a screen in front of a buyer.

Not quite right?

Make it yours.

Same 12 columns, your size and your rules. See 20 rows before you pay.

Preview 20 rows free

1,000 rows: $1.99 · 10,000: $12.99One-time. No subscription. All prices

This dataset120 rows12 columns
Yours1,000 rows12 columns

blueprint · repeat-purchase-cohort-analysis

Behind this dataset

Same schema. As many rows as you need.

These 120 rows came out of a blueprint — 12 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.

Rules it was built with
  • Cohorts are grouped by first purchase month
  • Repeat purchase flag updates on each transaction
  • Exclude customers with only one order
  • Calculate cumulative retention rate by cohort
  • Highlight cohorts above 20% repeat rate
Rows
Open the blueprint in Data Factory

1 credit per row. Preview 20 rows free. Buy rows for the full run.

Exports
CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
Licence
yours to use, including commercially
API slug
repeat-purchase-cohort-analysis

What should your data show?

Preview 20 rows free
No signup. No card.