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
[SOLVED] Grouping rows and summing each group
Brinnington
Member Posts: 2 Contributor I
Hi.
I would like your advice.
I have a dataset which has around 180 rows relating to one date, and another 180 rows relating to a second date, and so on.
I want to sum the attributes for those 180 rows of the first date, and I want to sum the atrributes of the 180 rows of the second date, etc.
I have tried to do this using the Aggreate operator, but it just produces averages. I can't get it to produce sums.
Do you happen to know if there is an operator which will sum the rows according to each date?
Or maybe I am using the Aggregate operator incorrectly.
Either way, I would glady appreciate your input and experience on this.
Thank you.
Bob
I would like your advice.
I have a dataset which has around 180 rows relating to one date, and another 180 rows relating to a second date, and so on.
I want to sum the attributes for those 180 rows of the first date, and I want to sum the atrributes of the 180 rows of the second date, etc.
I have tried to do this using the Aggreate operator, but it just produces averages. I can't get it to produce sums.
Do you happen to know if there is an operator which will sum the rows according to each date?
Or maybe I am using the Aggregate operator incorrectly.
Either way, I would glady appreciate your input and experience on this.
Thank you.
Bob
0
Answers
you have to set the date as grouping attribute and sth. else as aggregation attribute, as in the process below.
Best,
Marius
Thank you very much for your guidance.
I selected the attribute I wanted to aggregate through the Edit List next to the aggregation attributes, and chose sum as the aggregation function. Then I selected the date attribute using the Select Attriubtes net to group by attributes. And I got what I wanted: the sums for each grouping of 180 rows for each date.
So once again, thank you.
Best,
Bob