Define dynamic cohorts based on event happening MORE than x amount of time ago

Open
#8,003 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, react

Research direction

The issue names no files or tests. Start by locating the cohort builder and its existing “in the last x” event filter, then trace how the filter reaches query execution; done means users can select “more than x ago” and cohorts return the expected users.

Written by the indexing model from the issue text.

Description

enhancement feature/cohorts feature/feature-flags team/feature-flags

Is your feature request related to a problem?

Sometimes I want a cohort not to count users who have done something recently, but those who have done something AT LEAST some amount of time ago. This isn't currently possible.

Describe the solution you'd like

The cohort builder should have an option to query not only "in the last x" but also "more than x ago".

Screen Shot 2022-01-12 at 16 25 35

Additional context

This comes from a user request.

Thank you for your feature request – we love each and every one!
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

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.

More from PostHog/posthog

All issues in PostHog/posthog

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.