PostHog / PostHog/posthog

Breakdown by cohort effectively filters rather than breaking down

Open
#5,565 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/cohorts feature/feature-flags feature/funnels team/feature-flags
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Description

Bug description

If I break down by a cohort I see a filtered version of the funnel rather than one that breaks down incohort vs outside of cohort

https://app.posthog.com/insights?insight=FUNNELS&properties=%5B%5D&filter_test_accounts=true&events=%5B%7B%22id%22%3A%22first%20team%20event%20ingested%22%2C%22name%22%3A%22first%20team%20event%20ingested%22%2C%22type%22%3A%22events%22%2C%22order%22%3A1%7D%5D&actions=%5B%7B%22id%22%3A%222674%22%2C%22name%22%3A%22User%20Signed%20Up%20(Comprehensive)%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A0%7D%2C%7B%22id%22%3A%224912%22%2C%22name%22%3A%22Discovered%20Learning%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A2%7D%5D&funnel_viz_type=steps&display=FunnelViz&interval=day&breakdown=%5B320%5D&breakdown_type=cohort&new_entity=%5B%5D&date_from=-90d

Expected behavior

I would expect to see the funnel broken down by
In Cohort X: True, False

But I see it broken down by
In Cohort X: True (only)

Which is effectively the same as the filter functionality

How to reproduce

  1. https://app.posthog.com/insights?insight=FUNNELS&properties=%5B%5D&filter_test_accounts=true&events=%5B%7B%22id%22%3A%22first%20team%20event%20ingested%22%2C%22name%22%3A%22first%20team%20event%20ingested%22%2C%22type%22%3A%22events%22%2C%22order%22%3A1%7D%5D&actions=%5B%7B%22id%22%3A%222674%22%2C%22name%22%3A%22User%20Signed%20Up%20(Comprehensive)%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A0%7D%2C%7B%22id%22%3A%224912%22%2C%22name%22%3A%22Discovered%20Learning%22%2C%22type%22%3A%22actions%22%2C%22order%22%3A2%7D%5D&funnel_viz_type=steps&display=FunnelViz&interval=day&breakdown=%5B320%5D&breakdown_type=cohort&new_entity=%5B%5D&date_from=-90d

Environment

  • PostHog Cloud
  • self-hosted PostHog, version/commit: please provide

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the linked PostHog funnel URL as the entry point and reproduce the cohort breakdown behavior described in the issue. Trace how the funnel handles the cohort breakdown, then verify that the result shows both “In Cohort X: True” and “In Cohort X: False” rather than only the cohort members.

Written by the indexing model from the issue text.

Assessment

Domain
analytics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.