Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
[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