Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Distinct counts
ERC
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).
Find more posts tagged with
AI Studio
Databases
Aggregate
Accepted answers
All comments
BalazsBaranyRM
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
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups