My data set is a financial one. We have investors' buying-selling activities. During one year investors bought and sold stocks many times. I want to calculate total buyings of each investor. For example, collect each investors buyings and calculate the total buying. Can "compute variable" function or another one can do this?