Distinct counts
ERC
New Altair Community Member
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).
0
Answers
-
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ázs0