Assuming that the variable COST is in the incoming data set:
[pre]
proc tabulate data=batterysales;
class Battery Month;
var cost;
table Battery ALL,Month*Cost;
RUN;
[/pre]
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and save with the early bird rate—just $795!