0
0
Tableaubi_tool~8 mins

Cohort analysis patterns in Tableau - Dashboard Guide

Choose your learning style9 modes available
Dashboard Mode - Cohort analysis patterns
Business Question

How do different customer groups (cohorts) behave over time after their first purchase?

Sample Data
Customer IDFirst Purchase MonthPurchase MonthSales Amount
1012023-012023-01100
1012023-012023-0250
1022023-012023-0370
1032023-022023-02200
1032023-022023-03100
1042023-032023-03150
1052023-032023-0480
Dashboard Components
  • KPI Card: Total Customers in Cohort (e.g., Jan 2023 cohort = 2 customers)
  • KPI Card: Total Sales for Selected Cohort (e.g., Jan 2023 cohort total sales = 220)
  • Line Chart: Sales Over Months Since First Purchase by Cohort
    Formula: Calculate months since first purchase = DATEDIFF('month', DATE([First Purchase Month] + '-01'), DATE([Purchase Month] + '-01'))
    Plot sales amount by this month offset for each cohort
  • Heatmap: Retention Rate by Cohort and Months Since First Purchase
    Formula: Retention = Number of customers with purchase in month N / Number of customers in cohort
  • Table: Raw Data Table showing Customer ID, First Purchase Month, Purchase Month, Sales Amount
Dashboard Layout
+----------------------+-----------------------+
| Total Customers KPI   | Total Sales KPI       |
| (Top Left)            | (Top Right)           |
+----------------------+-----------------------+
|                      Line Chart: Sales Over Months          |
|                      Since First Purchase by Cohort        |
+-------------------------------------------------------------+
|                      Heatmap: Retention Rate                |
+-------------------------------------------------------------+
|                      Raw Data Table                          |
+-------------------------------------------------------------+
    
Interactivity

Cohort Filter: Select a cohort month (e.g., Jan 2023) to update all components to show data only for that cohort.
Month Offset Slider: Filter the line chart and heatmap to show data for a specific range of months since first purchase.
Hover on Heatmap: Show exact retention rate percentage for that cohort and month.
Click on Table Row: Highlight corresponding cohort in charts.

Self Check

If you add a filter to select the cohort "2023-02", which components update and what changes do you expect?

  • The Total Customers KPI updates to show 1 (customer 103).
  • The Total Sales KPI updates to show 300 (200 + 100 sales).
  • The Line Chart updates to show sales over months since first purchase only for the Feb 2023 cohort.
  • The Heatmap updates to show retention rates for the Feb 2023 cohort only.
  • The Raw Data Table filters to show only rows with First Purchase Month = 2023-02.
Key Result
Dashboard showing customer cohorts' sales and retention patterns over months since first purchase.