Mixpanel Community Icon

Filter Events by User Distinct ID for Board Grouping

·
·

I want to filter out the events generated by certain users, how can I group these users by their Distinct ID and apply this group as a filter across a board?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Hi Mihir S., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    To filter out events generated by certain users across a board in Mixpanel, you can create a cohort based on their Distinct IDs and then apply this cohort as a filter. Here's how you can do it: 1. First, create a cohort of the users you want to exclude: - Go to the Users page in Mixpanel. - Use the query builder to filter users based on their Distinct IDs. - Save this group of users as a cohort.2. Once you have created the cohort, you can apply it as a filter across your board: - Open the board you want to apply the filter to. - Look for the filter option, usually near the top of the board. - Add a new filter and select the cohort you created. - Choose to exclude this cohort from your analysis.This method allows you to consistently filter out the events from these specific users across all reports in your board.For more detailed information on creating and using cohorts, you can refer to the Mixpanel documentation on Cohorts.Remember that cohorts in Mixpanel are dynamic by default, meaning they will update automatically if new users meet the criteria you've set. If you want a static list of users, you might need to adjust the cohort settings accordingly.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.

  • Avatar of Mihir S.
    Mihir S.
    ·
    ·

    kapa.ai Can you help me write this query for the query builder? I have the Distinct ID for each of the users I want to exclude.

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Let me check the knowledge base for you again. One moment! đź“š

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Certainly! I'd be happy to help you write a query for the Mixpanel query builder to create a cohort based on specific Distinct IDs. Here's how you can do it: 1. Go to the Users page in Mixpanel. 2. In the query builder, you'll want to use the "User" filter. 3. Select "Distinct ID" as the property. 4. Choose the operator "is in list of" or "exactly matches". 5. Enter your list of Distinct IDs.Here's an example of how the query might look: LBKSUser Property: Distinct ID is in list of [ID1, ID2, ID3, ...]LBKSReplace [ID1, ID2, ID3, ...] with your actual list of Distinct IDs.If you have a large number of Distinct IDs, you might want to consider using the "import from CSV" option if available in your Mixpanel version. This allows you to upload a CSV file containing all the Distinct IDs you want to exclude.Once you've set up this query, you can save it as a cohort. Then you can use this cohort as a filter across your board, excluding these specific users from your analysis.For more detailed information on creating cohorts and using the query builder, you can refer to the Mixpanel documentation on Cohorts.Remember, after creating this cohort, you'll need to apply it as an exclusion filter on your board to filter out the events from these users across all your reports.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.

  • Avatar of Mihir S.
    Mihir S.
    ·
    ·

    kapa.ai I cant select Distinct ID as a property?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Let me check the knowledge base for you again. One moment! đź“š

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    I apologize for the confusion in my previous response. You're right that you can't directly select Distinct ID as a property in the Cohort Builder. Let me provide you with the correct approach based on the information in the Mixpanel documentation.To create a cohort based on specific Distinct IDs, you should use the $distinct_id property instead. Here's how you can do it: 1. Go to the Cohort Builder in Mixpanel. 2. In the query builder, select "User properties" as the filter type. 3. Choose $distinct_id as the property. 4. Use the operator "equals" or "is in list" depending on how many IDs you want to include. 5. Enter the Distinct ID(s) you want to include in the cohort.Your query should look something like this: LBKSUser properties: $distinct_id equals [your_distinct_id]LBKSor for multiple IDs: LBKSUser properties: $distinct_id is in list [ID1, ID2, ID3, ...]LBKSOnce you've set up this query, you can save it as a cohort. Then you can use this cohort as a filter across your board, excluding these specific users from your analysis.For more detailed information on creating cohorts using the Cohort Builder, you can refer to the Mixpanel documentation on Cohorts.I apologize again for the earlier confusion, and thank you for bringing this to my attention.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.

  • Avatar of Mihir S.
    Mihir S.
    ·
    ·

    kapa.ai if $distinct_id is an event property. How do have it accessible as a Profile Property?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Let me check the knowledge base for you again. One moment! đź“š

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    You're correct that $distinct_id is primarily an event property in Mixpanel. However, it's also automatically available as a profile property for user profiles. Let me explain this based on the information from the Mixpanel documentation: According to the Reserved Properties documentation, $distinct_id is listed as a reserved profile property: "$distinct_id | Distinct ID | Mixpanel's internal unique identifier for a profile. See Identifying Users and Group Profiles"This means that Mixpanel automatically makes the $distinct_id available as a profile property for each user profile. You don't need to explicitly set it as a profile property because Mixpanel handles this internally.When you create a user profile or update it, Mixpanel uses the $distinct_id to identify the specific user profile. This allows you to use $distinct_id in queries related to user profiles without having to manually set it as a profile property.If you're working with user profiles and need to use the $distinct_id, you should be able to access it directly as a profile property in your queries or filters.If you're having trouble accessing $distinct_id as a profile property in a specific part of Mixpanel, it might be helpful to double-check your implementation or reach out to Mixpanel support for further assistance.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.

  • Avatar of Mihir S.
    Mihir S.
    ·
    ·

    kapa.ai In the Lexicon my profile properties are empty. I already have 500+ users can I make profile properties now? Do I have to make them or are they not automatically populated because the Users page shows $distinct_id as a column but its not there in my profile properties lexicon.

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Let me check the knowledge base for you again. One moment! đź“š

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Based on the information provided in the knowledge sources, I can address your concerns about profile properties in Mixpanel.1. Creating Profile Properties: Yes, you can still create profile properties even if you already have 500+ users. User Profiles in Mixpanel are mutable, which means you can add, update, or delete properties at any time. The User Profiles documentation states that "User Profiles are optional. We recommend starting with events and adding user profiles only if needed."2. Automatic Population of Properties: Profile properties are not automatically populated from events. You need to explicitly set them. The User Profiles documentation mentions that "You can create or update User Profiles in similar ways you track events: from our SDKs, via our HTTP Engage API, Warehouse Connectors, or via our integrations partners."3. $distinct_id as a Profile Property: The $distinct_id is a special case. It's listed as a Reserved Profile Property in Mixpanel's documentation. This means it should be available for use with user profiles even if it's not explicitly listed in your Lexicon.4. Empty Profile Properties in Lexicon: If your profile properties are empty in the Lexicon, it likely means you haven't explicitly set any profile properties yet. The Lexicon typically shows properties that have been set on at least one profile.To start populating profile properties, you have several options: 1. Use one of Mixpanel's SDKs to set properties programmatically. 2. Use the HTTP Engage API to set properties. 3. Import profiles via CSV using the Mixpanel UI. The documentation provides step-by-step instructions for this process.Remember, when setting profile properties, you need to associate them with the correct $distinct_id to ensure they're linked to the right user profiles.If you're still experiencing issues or if the $distinct_id is not appearing where you expect it to, it might be worth reaching out to Mixpanel's support team for more specific troubleshooting.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.