Define a new cohort

This article helps you:

  • Learn how to quickly define a new cohort to use in your analyses and charts

Define the cohort

To define a new cohort, follow these steps:

  1. Click Create > Cohort. This takes you to the a new cohort page, where you can set the parameters of a new cohort, upload a CSV of users into a new behavioral cohort, select and edit a predictive cohort template, or create a prediction for a predictive cohort.

  2. You can click any of the conditions (performed event, had been active, had been new, had property, or had propensity) listed to begin defining your cohort. However, since this is a behavioral cohort, let's start by clicking ...performed event. You can add other conditions to your cohort definition later.

  3. Click Select event... and select the event you're interested in.

  4. Begin setting the parameters that defines your behavioral cohort:

    behavioral_cohorts_define_new.png

    First, tell Amplitude how you want it to count events. You have six options, all of which are accessible from the with dropdown:

    • Count. The basis of your cohort is the number of times users trigger your event. For example, all users who triggered Favorite Song or Video more than five times during the last 30 days. See our Behavioral cohorts FAQ to learn more about how to create a cohort of users who lack user properties or didn't perform an event.
    • Relative count. Amplitude compares two different event frequencies. For example, all users who triggered Play Song or Video at a greater frequency than Favorite Song or Video during the last 30 days. You have the option to add "where" clauses for both events under comparison.
    • Total sum of property. Filters for users who triggered events with a particular event or user property sum. These event or user properties must have numerical values. For example, all users in the last 30 days who triggered Play or Search Song with total Duration value greater than 60 seconds.
    • Distinct values of property. Filter for event or user properties down to a specific value or set of values you are analyzing. For example, only those users who favorited a song or video on more than one device.
    • Historical count. Your cohort contains users who triggered the event a specific number of times, between one and five. See our Help Center article on how Historical Count works in Amplitude to learn more.
    • Count in interval. Filter for users who triggered the event at least once on each of the number of distinct days within a given interval. This enables you to specify behavior that occurred within distinct days in a defined time period. For example, you could filter for users who triggered the event at least once on each of a certain number of distinct days (you define how many) within a given interval. This differs from daily, weekly, or monthly behavior, which doesn't require the behavior to occur on different days.

    See the article on how stickiness analysis works in Amplitude to learn more.

  5. Set the operator (equal to, greater than, less than, etc) and the value (like the count value) of this parameter.

  6. Now you must tell Amplitude when these events should have taken place. Here, too, you have some options, accessible from the any time dropdown:

    • During. Includes all events triggered within the date range you choose in the date picker. This can be a range between two specific dates, or it can be something more dynamic, like Last 30 Days. In the latter case, the range updates every day, and users who haven't triggered the event in X number of days are dropped from the cohort.
    • Since. Includes all events triggered since the calendar date you choose in the date picker.
    • Within. Looks at events triggered within each cohort member's X days of first use. This is useful when you're interested in the group of users who triggered a specific event within X days of becoming a new user.
  7. You can add more events by clicking ...then and repeating the previous steps.

    Adding an event using ...then means users must trigger both events in that order to be included in the cohort. If you want to add another event without requiring users trigger them in a specific order, use + Add, as described in the next step.

  8. Next, you can add an ...or clause, or you can add another event, property, propensity, cohort or new user. To see your options for an Or clause, hover the cursor over the cohort definition you've built so far. To see your options for adding to your cohort definition, click + Add just below your current cohort definition.

behavioral_cohort_add_more.png

When you add a condition using an Or clause, Amplitude includes users who meet either of those conditions. When you add to your cohort definition with + Add, Amplitude treats that as an And clause: A user must meet both conditions to be included in the cohort.

When you use + Add to add new components to your cohort, you can specify them for either inclusion or exclusion. Do this by selecting did not for events, user properties, and propensities; not part for cohorts; and had not been for new users.

behavioral_cohorts_exclude.png

Items meeting the exclusion condition are excluded from the cohort, even if they meet all the other conditions you've specified.

In this example, the cohort is defined as users who've triggered the Play or Search Song event more than eight times, and also triggered the Favorited a Song or Video event more than four times between April 1 to April 30, and are from the United States.

behavioral_cohort_example.png

Note

For the most accurate results, put a date range around any user properties you include.

User property clauses

When you include a user property condition in a cohort, you're looking not at events, but at user properties. You're telling Amplitude that all users who had a specific value for a specific user property at a certain time should appear in your cohort. Properties and events are different things, and for that reason, the available options for the user property condition are different:

  • Most recently: This selects only users whose most recent value for the user property you're interested in matches the value you've specified. This value comes from a user's most recent active event. This is useful if you have a user property where the values change frequently, but you want the cohort to look at the most recent value only. For example, you might want to only include users whose push notifications are enabled, since many new users (those in their first 30 days) may not have enabled them yet.

Note

For numerical property values, Amplitude interprets a missing value as 0.

  • Any time: This selects users who had the specified value for the user property you're interested in at any time in the date range you select. For example, users who had the Country property of United States anytime during the last 30 days: Even if some users may have left the United States (which would mean their most recent Country property value is different), this cohort definition would still include them.

Group-level cohorts

If you have instrumented group types, you can create group cohorts from the cohort detail page (where you define or upload a cohort). To do this, when defining your cohort, select the group name on the left side of the definition. In this example, the group name is "Account(s)."

group level_cohort.png

When applying the group cohort to a chart, add the group by clicking + Filter by, and then Cohort. Then select the group name from the list.

Group cohorts are compatible with all Amplitude chart types except Personas and Compass.

Was this page helpful?

Thanks for your feedback!

August 28th, 2024

Need help? Contact Support

Visit Amplitude.com

Have a look at the Amplitude Blog

Learn more at Amplitude Academy

© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.