🎉 🎉 RAPIDMINER 9.10 IS OUT!!! 🎉🎉

Download the latest version helping analytics teams accelerate time-to-value for streaming and IIOT use cases.

CLICK HERE TO DOWNLOAD

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).


Answers

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 709   Unicorn
    Hi!

    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.

    Regards,
    Balázs
Sign In or Register to comment.