The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Distinct counts

ERCERC Member Posts: 1 Learner I
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, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 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.