Concepts Plan
Draft written by Claude from the teacher's materials; not yet reviewed by the teacher. Use Review (top right) to leave comments on any part.

Investigating Teamlane's data · Week 8 · ≈ 75 min

Cohorts and retention

Same week: The Teamlane decision: What a customer is worth

Resources for this lab

The founder's question this week: "Partner converts the most trials and paid search the fewest. But do the customers each channel brings actually stay?"

Last week's lab (the trial funnel by channel) stopped at the first payment. The lecture (week 7) showed why that is not enough: Teamlane grew from 292 to 505 paying accounts in 2025, yet 94 of January's 292 had left by December. A growing total can hide customers walking out of the back door. To see them you have to follow fixed groups of customers through time, which is cohort analysis.

Today you build the lecture's cohort triangle yourself, check it cell by cell, add revenue retention, and compare the three channels fairly: at the same age, with their counts.

You need: Teamlane_L06 (the saas_mrr.csv source is already in it) and the decision-log template. Save as Teamlane_L07. Time: 80 minutes (0–5 reopen the workbook, 5–15 brief, 15–75 the four tasks, 75–80 save and share one finding). Deliverables: a cohort check sheet, the cohort triangle, the January cohort's logo and revenue lines, a channel comparison at age 6 and a three-sentence interpretation.

Brief: cohort, age and a denominator that does not move

Cohort. A cohort is a group of customers who started at the same time. At Teamlane the start is the Signup Month, the first paid month. 270 accounts in the file signed up before 2025 and 369 during 2025; the 369 form twelve monthly cohorts, from January (22 accounts) to December (46).

Age. Age is the number of whole months since the start: age 0 is the signup month, age 1 the month after. In Tableau, DATEDIFF('month', [Signup Month], [Month]). The two time axes answer different questions: the calendar month says when something happened, the age says how long after the start. A cohort triangle puts cohorts on rows and ages on columns, so reading down a column compares cohorts at the same age, and each diagonal is one calendar month (an outage in August would show as a diagonal stripe).

Active. What "still a customer" means is a business definition. For a subscription it is "still paying", and Teamlane's billing has a row for every month an account pays, with no gaps: no account leaves and comes back. So active at age k means a billing row exists at age k, counted with COUNTD([Account ID]). (Purchase data, where a customer can skip a month, would first need explicit zero rows.)

Two retention measures.

Measure Formula at age k Weighs Can exceed 100%?
Logo retention accounts active at age k ÷ cohort size every account equally no
Revenue retention cohort MRR at age k ÷ cohort MRR at age 0 every euro equally yes, when survivors add seats

Revenue retention is the cohort version of week 4's NRR (its complement is revenue churn); logo retention is the cohort version of logo churn. They part ways when large and small accounts behave differently.

The denominator is the original cohort. Retention at age 11 is the accounts still paying at age 11 divided by the 22 that started, not by the 15 that were still there at age 10 (that would be a month-to-month survival rate, a different metric). The difficulty in Tableau is that once Age is in the view, every aggregate is computed per age: COUNTD([Account ID]) in the age-11 column counts 14, the survivors. You need a number that ignores Age. That is what a FIXED level-of-detail expression does: {FIXED [Signup Month]: COUNTD([Account ID])} counts each cohort's accounts over all its rows, whatever is on Rows or Columns, and writes the result (22) on every row of the January cohort.

Filters and FIXED. Tableau applies context filters first, then computes FIXED expressions, then ordinary dimension filters, then the aggregation, and table calculations last. So an ordinary filter (Age = 6) does not change a FIXED value, which keeps the denominator fixed. A filter that should shape the denominator ("only the cohorts January–June") must be added to context, or FIXED counts accounts the view no longer shows.

Censoring. The data ends in December 2025. The January cohort is observed at ages 0–11; the December cohort only at age 0. The empty lower-right half of the triangle is the future, not zero, and the December cohort's 100% says nothing yet, because age 0 is 100% by definition. This is right-censoring (in cohorts): a cohort can only be compared at ages it has reached. Compare cohorts and channels at the same age, using only the cohorts old enough to have reached it, and say how many accounts stand behind each rate.

Match each Teamlane figure to the measure it is.

Task 1 · The cohort fields: steps

Goal: an Age field, a filter that keeps only the 2025 cohorts, and a check on one real account.

  1. In the saas_mrr source create the calculated field (Analysis › Create Calculated Field) Age = DATEDIFF('month', [Signup Month], [Month]). DATEDIFF returns a whole number, so Tableau files it under the measures. Right-click it › Convert to Dimension, and check it is discrete (a blue pill; if green, right-click › Convert to Discrete). As a measure, Age would be summed in the view instead of forming columns.
  2. Create Cohort 2025 = [Signup Month] >= #2025-01-01#. Drag it to Filters, keep True, then right-click the pill › Add to Context. It turns grey. The FIXED expressions you build next must see only these accounts.
  3. New sheet: drag COUNTD([Account ID]) and the row count (SUM([Row Count]) from Lab 1, or the table's own saas_mrr.csv (Count)) to Text, side by side (Measure Names on Columns, Measure Values on Text).
  4. Duplicate the sheet. Drag Account ID to Filters and keep only A0279; put Month (exact date, discrete) and Age on Rows, Plan, Seats and MRR on Text. Read the account across. Then remove the Account ID filter.
  5. Rename the first sheet L07 Cohort check.

Task 1 · Build it

Create Age and the context filter, build the check sheet and read A0279, following the steps above.

Task 1 · Checks and common mistakes

Check, 2025 cohorts Expected
Accounts 369
Account-months 1,969
A0279 Business, 67 seats, Partner; rows January–July 2025, ages 0–6, €1,675 every month

A0279 is the most important account of the lab: it is one of 22 January accounts, but it pays 23% of the cohort's starting MRR (€1,675 of €7,243.40). Its last row is July, so it left after age 6.

Common mistakes. Leaving out the Cohort 2025 filter keeps the 270 accounts that signed up before 2025. Their early ages are not in the file (an account that signed up in June 2024 first appears at age 7), so their "cohorts" start in the middle and the triangle gains rows that are not comparable. Age left as a continuous measure gives one column with SUM(Age) instead of twelve columns. And an ordinary (not context) filter looks the same in the view but will give wrong denominators in Task 3.

Answer from the dataCohort analysisGrain

With the Cohort 2025 filter on (Signup Month in 2025), how many account-months (rows) are in the data? Your check sheet shows it next to the 369 accounts.

Dataset: saas_mrr.csv

Why does the triangle keep only accounts with a Signup Month in 2025?

Task 2 · The cohort triangle: steps

Goal: logo retention by signup month (rows) and age (columns), as a heatmap you can read down a column.

  1. Create Cohort Size = {FIXED [Signup Month]: COUNTD([Account ID])}.
  2. Create Logo Retention = COUNTD([Account ID]) / MIN([Cohort Size]). Use MIN, not SUM: the FIXED value is written on every row of the cohort (22 on each of the January cohort's 22 rows at age 0), so SUM adds it once per row. MIN (or MAX, or ATTR) returns the single value.
  3. New sheet L07 Cohort triangle. Drag Signup Month to Rows and set it to a discrete month: Month / Year in the pill menu (MONTH alone also works here, because the context filter leaves only 2025). Age on Columns.
  4. Marks card: mark type Square. Logo Retention on Color and on Label; format it as a percentage with no decimals (right-click the pill › Format). Drag Cohort Size to Tooltip and set its aggregation to Minimum.
  5. Edit Colors: a sequential palette; under Advanced, start 0.5 and end 1, so the differences between 65% and 100% are visible. Make sure grand totals are off (Analysis › Totals).

Task 2 · Build it

Build the cohort triangle following the steps above and check the cells in the table below.

Task 2 · Checks and reading

Cohort Size Age 3 Age 6 Age 9 Oldest age observed
January 22 95% (21) 86% (19) 73% (16) age 11: 64% (14)
February 24 96% (23) 92% (22) 67% (16) age 10: 67% (16)
March 27 96% (26) 89% (24) 74% (20) age 9: 74% (20)
June 30 100% (30) 87% (26) age 6
September 36 89% (32) age 3
December 46 age 0: 100%

Every age-0 cell is 100%. The triangle shows retention falling steadily with age, to about two-thirds after 9–11 months in the oldest cohorts; no cohort is dramatically better than the others at the same age. Because an account that leaves never returns, each row can only go down or stay level.

Common mistakes. Dividing by SUM([Cohort Size]) gives rates far below 1% (January age 11: 14 ÷ (22 × 14) = 4.5%, the same 4.5% in every cell of the row). Dividing by COUNTD([Account ID]) at the same age gives 100% everywhere. Signup Month as a continuous date draws a line chart instead of rows. And reading the December row as "the best cohort" mistakes a cohort that has not had time to fail for one that has not failed.

What is the logo retention of the February 2025 cohort at age 10 (December 2025), in percent with one decimal?

Dataset: saas_mrr.csv

A classmate writes Logo Retention = COUNTD([Account ID]) / SUM([Cohort Size]). The January age-11 cell shows 4.5%. What happened?

The December 2025 cohort shows 100% retention, so it is the cohort that has kept its customers best so far.

Task 3 · Revenue retention and channels at the same age: steps

Goal: the January cohort's logo and revenue retention as two lines, then the three channels compared at age 6.

  1. Create Cohort Start MRR = {FIXED [Signup Month]: SUM(IF [Month] = [Signup Month] THEN [MRR] END)} (the cohort's MRR at age 0, on every row) and Revenue Retention = SUM([MRR]) / MIN([Cohort Start MRR]).
  2. Duplicate the triangle and rename it L07 January cohort. Filter Signup Month to January 2025. Mark type Line; Age on Columns; drag Logo Retention to Rows, then drop Revenue Retention on the same axis so Tableau switches to Measure Values; Measure Names on Color.
  3. New sheet L07 Channel at age 6. Filters: Age = 6, and Signup Month January–June 2025 (the six cohorts that reached age 6). Right-click the Signup Month filter › Add to Context.
  4. Create Channel Cohort Size = {FIXED [Channel]: COUNTD([Account ID])} and Channel Start MRR = {FIXED [Channel]: SUM(IF [Month] = [Signup Month] THEN [MRR] END)}.
  5. Channel on Rows. On Text (via Measure Values): COUNTD([Account ID]), MIN([Channel Cohort Size]), COUNTD([Account ID]) / MIN([Channel Cohort Size]) (logo) and SUM([MRR]) / MIN([Channel Start MRR]) (revenue).

Why the context matters here: the Age = 6 filter must not reach the denominator (it would shrink to the survivors), while the Signup Month filter must (only cohorts that reached age 6 belong in it). An ordinary dimension filter is applied after FIXED, a context filter before it; that difference is the whole trick.

Task 3 · Build it

Build the January cohort lines and the channel comparison following the steps above.

Task 3 · Checks and reading

January cohort. Revenue retention stays within a point of 100% up to age 6 (99.6%), then falls to 75.8% at age 7 while logo retention moves only from 86% to 77%. One account explains the cliff: A0279, €1,675 a month, 23% of the cohort's starting MRR, stopped paying after July. In the logo view it is one of 22 accounts; in the revenue view it is almost a quarter of the cohort. At age 11 the cohort keeps 64% of its accounts but 74.9% of its MRR (€5,425.60 of €7,243.40): most leavers were small Starter accounts.

Channels at age 6, cohorts January–June 2025:

Channel Accounts at start Still paying at age 6 Logo retention Revenue retention
Organic 74 68 91.9% 101.3%
Paid Search 62 49 79.0% 96.1%
Partner 27 25 92.6% 100.4%

Paid-search accounts leave sooner: 13 of 62 have gone by age 6, against 6 of 74 organic. Partner looks as good as organic, but rests on 27 accounts, so one more leaver would move it by 3.7 points. Organic and partner keep more than 100% of their revenue because surviving accounts added seats.

Common mistakes. Forgetting to add the Signup Month filter to context leaves all twelve 2025 cohorts in the FIXED denominator: paid search becomes 49 ÷ 130 = 37.7%, a rate that mixes in accounts which could not have reached age 6. Putting the Age filter into context shrinks the denominator to the survivors and shows 100% for every channel. Comparing channels across all ages at once (no Age filter) weights each channel by how young its accounts are.

Answer from the dataRevenue churnCohort analysis

What is the revenue retention of the January 2025 cohort at age 7 (August 2025): its MRR at age 7 ÷ its MRR at age 0, in percent with one decimal?

Dataset: saas_mrr.csv

For the cohorts January–June 2025, what share of the Paid Search accounts still pay at age 6? Percent with one decimal.

Dataset: saas_mrr.csv

On the channel sheet, paid search shows 49 ÷ 130 = 37.7% at age 6. The Age = 6 filter and the Signup Month filter (January–June) are both on the Filters shelf. What is wrong?

Task 4 · The retention page: steps

Goal: one dashboard page that answers the founder's question, and three sentences that stay within the evidence.

  1. Dashboard › New Dashboard. Place the cohort triangle (large, top), the January cohort lines and the channel comparison underneath.
  2. Title it with the question: "Do the customers each channel brings stay?" Add a text object with the definitions: "Active = a billing row exists. Logo retention = active accounts ÷ original cohort. Blank cells are not yet observed. Synthetic data."
  3. Write three sentences: what the triangle shows, how paid search differs at age 6 with its counts, and one limitation.
  4. Save Teamlane_L07.

Task 4 · Build and write

Assemble the retention page and write the three sentences following the steps above.

An evidence statement and the decision log

An evidence statement gives the number, its population and period, how it was computed, its evidence type and a limit; it describes, it does not explain. A model interpretation for Task 4:

Logo retention falls steadily with age, to about two-thirds after 9–11 months in the oldest 2025 cohorts (January: 14 of 22 at age 11). At age 6, the January–June cohorts keep 49 of 62 paid-search accounts (79.0%), against 68 of 74 organic (91.9%) and 25 of 27 partner (92.6%). Limitation: one year of synthetic data, a partner group of only 27 accounts, and channel recorded at sign-up only; part of the paid-search gap is plan mix, since paid search brings more Starter accounts (55% of its 2025 accounts against 47% for organic).

Notice what it does not say: that paid search "causes" churn, or that partner is "the best channel". The statement gives both numerators and denominators, so the reader can judge how solid each rate is.

For the decision log, record what changed in the channel question. For example: "Trial conversion favoured partner (week 7). Retention at age 6 does not overturn that: partner keeps 25 of 27, organic 68 of 74, paid search 49 of 62. Paid search now has two weaknesses, conversion and retention; its cost per account must be judged churn-adjusted in week 9."

Which of these sentences are sound evidence statements from today's lab?

Which are genuine limitations of the channel comparison at age 6?

Checkpoint L07

Submit Teamlane_L07 with the cohort check (369 accounts, 1,969 account-months), the triangle, the January cohort's logo and revenue lines, the channel comparison at age 6 and your three-sentence interpretation, plus one decision-log line. In the course this fills the retention row of the channel comparison; next week adds what each account contributes after its costs and when its acquisition cost is paid back, which needs exactly the churn-adjusted view you built today.

Advanced

Why Tableau does this: context, FIXED and MIN

The order of operations, applied. For each view Tableau runs, in order: extract and data-source filters, context filters, FIXED expressions, ordinary dimension filters, INCLUDE/EXCLUDE expressions, measure filters, aggregation, table calculations, table-calculation filters. Three consequences explain every rule of this lab:

  • Cohort Size survives the Age filter because Age is an ordinary dimension filter, applied after FIXED.
  • Channel Cohort Size needs the Signup Month filter in context because it is a FIXED expression at a coarser level than the cohort. {FIXED [Signup Month]} gives January 22 with or without context (the January cohort is the same group either way); {FIXED [Channel]} gives paid search 62 with context and 130 without, because without it the expression counts every 2025 paid-search account.
  • The Cohort 2025 filter is in context for the same reason: a FIXED expression at the level of the whole table or a channel would otherwise count the 270 older accounts too.

MIN of a FIXED value. A FIXED expression is computed per cohort and copied onto each underlying row: in the January age-11 cell (14 rows) the value 22 appears 14 times. SUM gives 308; MIN, MAX, AVG and ATTR give 22 (ATTR would show * if the copies disagreed, a warning that the cell mixes cohorts).

Troubleshooting. - Every cell is 100%: the denominator is computed at the same level as the numerator (COUNTD instead of the FIXED field), or the Age filter was added to context. - Rates below 5%: SUM of the FIXED field. - The triangle has more than twelve rows, or rows that start at age 7 or later: the Cohort 2025 filter is missing. - Channel rates far below the table's: the Signup Month filter is not in context. - Revenue retention far below 100% already at age 0: Cohort Start MRR was written as {FIXED [Signup Month]: SUM([MRR])}, the cohort's billing over all its months instead of its age-0 MRR.

Advanced

Put these steps in the order Tableau applies them to the channel-at-age-6 view.

Advanced

Mix or channel? Add a Plan filter set to Starter to the channel sheet and add it to context (so the FIXED denominators count only Starter accounts). What share of the Paid Search Starter accounts from the January–June cohorts still pay at age 6? Percent with one decimal.

Dataset: saas_mrr.csv

Advanced

Extension · Pooled retention by age, with eligible cohorts only

The founder wants one curve, not twelve rows. Averaging every filled cell gives 91.4% over 78 cells, and it is wrong twice: young ages, near 100%, have the most cells (twelve at age 0, one at age 11), and a small cohort counts as much as a large one. The honest curve pools the accounts at each age using only the cohorts that reached it: at age k, add the survivors of those cohorts and divide by the sum of their sizes.

Route A, one age at a time (LOD).

  1. New sheet. Filters: Age = 6 (ordinary), Signup Month January–June 2025 (in context).
  2. Create Eligible Accounts = {FIXED : COUNTD([Account ID])} (a FIXED with no dimension: the whole table after the context filters).
  3. On Text: COUNTD([Account ID]), MIN([Eligible Accounts]) and their ratio. Expected: 142 of 163 = 87.1%.
  4. Change the filters to Age = 9 and Signup Month January–March. Expected: 52 of 73 = 71.2%.

Route B, all ages at once (table calculation).

  1. Duplicate the triangle. Create Pooled Retention = WINDOW_SUM(COUNTD([Account ID])) / WINDOW_SUM(MIN([Cohort Size])).
  2. Put it on Label instead of Logo Retention. Edit Table Calculation › Specific Dimensions: tick Signup Month only, so the window runs down each Age column and restarts at the next age. Every filled cell in a column now shows that age's pooled rate: the age-6 column shows 87.1% six times.
  3. To show one value per age, create First Row = FIRST() = 0, put it on Filters (True), and set its Compute Using to Signup Month as well. It is a table calculation, so it filters marks after the pooled rate is computed, exactly like LAST() = 0 in the KPI lab.
Age 0 3 6 7 9 11
Cohorts eligible 12 9 6 5 3 1
Pooled logo retention 100% (369) 93.8% (225/240) 87.1% (142/163) 79.7% (106/133) 71.2% (52/73) 63.6% (14/22)

Route B works only because every cohort keeps at least one account at every age it reached: a window sums existing marks, and an empty cell is not a mark, so its cohort size would silently leave the denominator. Route A has no such weakness; use it to check Route B. Late ages rest on few accounts: age 11 is the January cohort alone.

Advanced

Extension · Pooled retention: build it

Build Route A for ages 6 and 9 and Route B for all ages, and check them against each other.

Advanced

Pooled logo retention at age 9, using only the cohorts that reached it (January–March 2025): survivors at age 9 ÷ the sum of those cohorts' sizes. Percent with one decimal.

Dataset: saas_mrr.csv

Advanced

Extension · Month-to-month survival

Survival at age k divides the accounts active at age k by those active at age k − 1: the share of last month's survivors who are still here. It is a table calculation on the January cohort sheet:

  1. Duplicate L07 January cohort, keep only Logo Retention, and add Survival = COUNTD([Account ID]) / LOOKUP(COUNTD([Account ID]), -1).
  2. Compute Using › Age. Age 0 is blank (no previous mark), like January in the growth view.
  3. Show COUNTD([Account ID]) on the tooltip so each rate shows its counts.

The January cohort's survival is between 93% and 100% at every age except age 7, where it is 89.5% (17 of 19); at age 11 it is 93.3% (14 of 15). Multiply the eleven survival rates and you get 14 ÷ 22 = 63.6%, the cohort retention: the two describe the same accounts with different denominators. Survival answers "how risky is the next month for those still here?"; retention answers "how many of the starters are left?". A board shown 93% survival may think the cohort healthy; it has lost more than a third of its accounts.

Concentration again: in the February cohort, A0307 (Business, €1,625, 28% of the cohort's starting MRR) last paid at age 6, and revenue retention falls from 98.3% to 69.6% at age 7. Watch large accounts by name; a rate reports their loss only afterwards.

Advanced

Extension · Survival: build it

Build the survival view following the steps above and check that the product of the survival rates equals 63.6%.

Advanced

Month-to-month survival of the January 2025 cohort at age 7: accounts active at age 7 ÷ accounts active at age 6. Percent with one decimal.

Dataset: saas_mrr.csv

Concepts in this chapter

Cohort analysisLevel-of-detail (LOD) expressionRevenue churnChurn rate (logo churn)Table calculationRight-censoring (in cohorts)Logo retention and revenue retention by cohortFilter scopeEvidence statementDimensions and measuresMonthly recurring revenue (MRR)AggregationDiscrete and continuous fieldsLevel of detail of a viewDashboardEvidence typeConversion rateCustomer acquisition cost (CAC)

Read further

  • (2026), Lab 7: Cohorts and retention
  • (2026), Teamlane: one row per paying account per month, 2025 (synthetic)
  • (2026), Weeks 7–8: Retention and repeat customer behaviour; Revenue and unit economics