[SOLVED] Grouping rows and summing each group
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
Find more posts tagged with
Sort by:
1 - 2 of
21
Hi 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
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
you have to set the date as grouping attribute and sth. else as aggregation attribute, as in the process below.
Best,
Marius