Distinct counts

ERCERC Member Posts: 1 Newbie
I have a dataset with thousands of IDs that have multiple encounters tied to them and each encounter has multiple events in it (each ID, encounter and event are listed  rows). These all have specific dates tied to each encounter. The dataset is thousands of rows long.  I am trying to count the number of distinct encounters (regardless of the number of events) for each ID in a specific time frame (3 months, 6 months etc).


  • Options
    BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn

    You can get the distinct count by doing two aggregations (Aggregate operator).
    First group by: ID, Date, count of some attribute value (that's not relevant).
    Second: Group by ID, count of Date.

Sign In or Register to comment.