|
All,
Apologies for the simple nature of this question - I've been wowed by some of the submissions to the list in the archive and I wish I could understand just 1% of them. Anyway, as part of my job I currently manipulate datasets with SPSS, mostly with simple syntax I have gleaned from the Paste buttons within dialog boxes. However, one thing I cannot do is sum the total values within a variable for use within a compute command.
As an example, I am looking at the balance of a single customers account within a dataset and I wish to know the percentage that the account constitutes of the overall balance. Currently I am running Compare Means->Sum for the total of the variable "balance" and then I am using the Compute command to create a variable called BalPerc which is simply (Balance/Sum of Balance)*100. I wish to know how to automate this process so I do not have to repeat this sequence over and over again.
Any help would be greatly appreciated,
John
|