echotianxia's solution looks great. But
You can also try the SAS procedures - means, summary, or univariate
The following is the example code for Proc means
data = temp;
class business datea;
var proceeds;
output out = tt sum = sumproceeds;
run;
Note: you probably need to create variable yeara = year (date) and sort the dataset by business and yeara.
Hope it helps !
