Sub topic 9
Comparing cohorts inside funnels and other reports
This chapter assumes you can build a basic funnel and that you know the four cohort types from the previous chapter: behavioral, property-based, dynamic and static. It also assumes you have used a breakdown by a property. Here you apply cohorts inside reports, compare them, and decide when the comparison is fair.
Why cohorts belong in reports
A funnel on all users gives one conversion rate. That number rarely tells you what to do. The useful question is usually whether one group converts differently from another. Property breakdowns answer this when the group is a single property value, such as plan = pro. A cohort answers it when the group needs a richer definition, such as "users who used search three or more times in their first week" or "users who came from a paid campaign and have not purchased".
A cohort is a saved, reusable definition of a group. Once saved, you can drop it into many reports and get comparable numbers across all of them.
Three ways to use a cohort in a report
Both Amplitude and Mixpanel let you apply a cohort in more than one way. The menu labels differ by tool and product version, but the three roles are the same.
| Role | What it does | Typical question |
|---|---|---|
| Filter (restrict) | Removes everyone outside the cohort before the report runs. | What is the funnel conversion for only our trial users? |
| Compare (segment) | Runs the same report once per cohort and shows the results side by side. | Do trial users and paid users convert differently? |
| Break down | Splits the result by cohort membership, with one series per cohort. | How does the funnel look for each of these cohorts? |
Filtering gives one answer for one group. Comparing and breaking down give several answers you can set next to each other. In Amplitude you typically add cohort segments to a chart, and each segment gets its own result. In Mixpanel you typically add a cohort as a filter, or break down by cohort, and each cohort becomes its own series.
What a cohort comparison does to a funnel
In a funnel, the cohort decides who is eligible to enter step 1. Then the usual rules apply: the conversion window, step order and counting method you set for the funnel. Each cohort is evaluated independently.
Two points follow from this. First, the funnel settings stay identical across cohorts, so differences come from the groups and not from the setup. Second, the cohort is a membership list, and the funnel counts only events from the members.
What the comparison computes
The SQL below shows the logic behind a cohort-by-cohort funnel. It reuses the two-step, ordered, 7-day funnel from the earlier example and adds a cohort_members table with one row per user and cohort.
WITH started AS (
SELECT e.user_id, c.cohort_name, MIN(e.event_time) AS t1
FROM events e
JOIN cohort_members c ON c.user_id = e.user_id
WHERE e.event_name = 'Sign Up Started'
GROUP BY e.user_id, c.cohort_name
),
completed AS (
SELECT s.user_id, s.cohort_name
FROM started s
JOIN events e
ON e.user_id = s.user_id
AND e.event_name = 'Sign Up Completed'
AND e.event_time >= s.t1
AND e.event_time < s.t1 + INTERVAL '7 days'
GROUP BY s.user_id, s.cohort_name
)
SELECT
s.cohort_name,
COUNT(DISTINCT s.user_id) AS started_users,
COUNT(DISTINCT c.user_id) AS completed_users,
ROUND(100.0 * COUNT(DISTINCT c.user_id)
/ NULLIF(COUNT(DISTINCT s.user_id), 0), 1) AS conversion_pct
FROM started s
LEFT JOIN completed c
ON c.user_id = s.user_id
AND c.cohort_name = s.cohort_name
GROUP BY s.cohort_name
ORDER BY s.cohort_name;The query returns one row per cohort. A user who belongs to two cohorts appears in both rows. Report tools behave the same way: cohorts overlap unless you define them so they cannot. If you add the cohort rows together, you will count some users twice and the total will not match the all-users funnel.
Dynamic and static cohorts in a comparison
The cohort type changes what the comparison means.
- A dynamic cohort recalculates membership as data arrives. A report run today and the same report run next month can give different results, even for a fixed date range, because the membership has moved.
- A static cohort is a frozen list of users. The same report gives the same group every time. This suits a comparison you need to repeat, such as the users who received an onboarding experiment last quarter.
For a result you plan to cite later, use a static cohort or record the date you ran the report. For monitoring a live segment, use a dynamic one.
Check when membership is decided
Ask when a user became a member, not just whether they are one. Two situations matter most.
- Membership defined before the funnel starts. For example, "signed up in March". This is safe to compare.
- Membership defined by behavior that happens during or after the funnel. For example, "users who completed onboarding" compared on an onboarding funnel. This guarantees the cohort converts well, because you selected people who already did.
The second case is a form of survivorship bias. The cohort contains only people who got through, so its conversion looks high by construction. Define the cohort from information available at the moment the user would enter the funnel.
Making the comparison fair
A difference between two cohorts is only worth acting on if the cohorts are comparable. Check these points before reading the rates.
- Size. A cohort of 40 users can swing by several percentage points from a handful of people. Look at the user counts beside the percentages. If your tool shows confidence ranges or counts on hover, read them.
- Overlap. If a user can be in both cohorts, the comparison blends the groups. Make the cohorts mutually exclusive, or add a rule that excludes the other cohort.
- Time period. Compare cohorts over the same dates, or the same time since each user joined. A cohort from last week has had less time to convert than one from last quarter, so a 7-day window is the safest way to level this.
- Entry mix. Cohorts that arrive from different channels differ in intent. A difference in conversion may reflect the channel, not the behavior that defines the cohort.
- Cause and effect. A cohort of users who used a feature often converts better. This does not show that the feature caused it. Motivated users do more of everything.
Cohorts in other reports
The same cohort works across report types, so you can follow one group through the product.
| Report | What a cohort comparison shows | What to watch |
|---|---|---|
| Funnel | Conversion and time to convert per cohort. | Cohort defined by an outcome inside the funnel. |
| Retention | Whether each cohort returns at the same rate over time. | Recent cohorts with incomplete periods look worse. |
| Event segmentation or insights | Event counts or unique users per cohort over time. | Different cohort sizes make raw totals misleading, so use per-user values. |
In retention, you compare the shape of the curves, not only one point. A cohort whose curve flattens at a higher level has a stable group of returning users. A cohort that keeps falling does not. When the latest period is still open, leave it out of the comparison, as covered in the retention chapter.
In event reports, raw totals mislead when cohorts differ in size. Use a per-user measure, such as average events per user, so a large cohort does not look more active only because it has more people.
A worked reading
Suppose you compare two cohorts on the sign-up funnel with a 7-day window.
| Cohort | Started | Completed | Conversion |
|---|---|---|---|
| Came from pricing page | 1,200 | 396 | 33.0% |
| Came from blog | 300 | 63 | 21.0% |
The gap is 12 points, and both cohorts have a few hundred users. That is large enough to take seriously. Before you act, check the following:
- Are the cohorts exclusive, so no user is in both?
- Do both cover the same dates?
- Is "came from" decided at the first visit, before the funnel starts?
- Does the blog cohort have a different plan mix? A plan breakdown within each cohort would show it.
If all four checks pass, you can write a hypothesis: blog visitors have lower purchase intent, so a different sign-up prompt may help them. If the checks fail, fix the cohort definitions first.
Common errors
- Reading percentages without counts, then acting on a small cohort.
- Adding up cohort results and expecting the all-users total.
- Using a cohort defined after the funnel outcome.
- Comparing a dynamic cohort today with a screenshot from last month.
- Mixing identity settings between reports. If one report merges anonymous and known users and another does not, the same cohort will contain different people.
Summary of the working model
Apply a cohort as a filter to get one group's answer, and as a comparison or breakdown to get several answers under identical funnel settings. Treat each cohort as a membership list evaluated independently, so overlap is possible. Choose static or dynamic membership deliberately. Define cohorts from information known before the funnel begins. Read counts alongside rates, and use matched dates or time since entry.
Exercise
You build a cohort "users who invited a teammate" and compare it with all other users on a funnel that ends at "Upgraded to Paid". The invite cohort converts at 48%, and everyone else converts at 9%. Give two reasons this gap may overstate the effect of inviting, and say how you would change the cohort definition to make the comparison fairer.
Show answer
First, the invite may happen after the user has already decided to upgrade, or just before, so the cohort is selected by behavior that overlaps with the outcome. Second, users who invite teammates are likely more engaged and more committed to begin with, so they would convert more even without the invite. To make it fairer, define the cohort by an action taken within a fixed early period, such as the first 3 days after sign-up, before the upgrade step can happen. Compare it against users who had the same 3 days and did not invite. Also make the cohorts mutually exclusive and check their sizes. Then use the gap as a hypothesis to test with an experiment, such as prompting invites.