Aggregate a column and caluculate the sum