Mixpanel Community Icon

Grouping Events by Distinct Properties in Mixpanel

·
·

How do I group an event by distinct properties in Mixpanel? e.g., I’m sending an event called “event1” with event property dicts like the following: track(event_name=“event1", event_properties={“foo”: “blue”, “bar”: “yellow”}) track(event_name=“event1”, event_properties={“foo”: “blue”, “baz”: “green”}) track(event_name=“event1", event_properties={“foo”: “red”, “baz”: “green”}) track(event_name=“event1”, event_properties={“foo”: “red”, “baz”: “green”}) I’d like to build a table that looks like the following: name | foo | bar event1 | blue | yellow | 1 event1 | blue | green | 1 event1 | red | green | 2

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    This is not perfect but you can use the same property multiple times in a breakdown.

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·
  • Avatar of Andrew S.
    Andrew S.
    ·
    ·
  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    So you will see that the value is in both columns which is the not great part but you can see where it pairs with the different choices in the same array

  • Avatar of Andrew S.
    Andrew S.
    ·
    ·

    Otherwise maybe create custom properties based on if X is present but that may not be practical if lots of choices