Sum of all rows in Proc Tabulate

Reply
Contributor
Posts: 35

Sum of all rows in Proc Tabulate

Hi All,

Could some one explain how to add "all the rows values " and place the total at the end of the table.

Thanks,

Pinky

SAS Super FREQ
Posts: 708

Re: Sum of all rows in Proc Tabulate

Hi

Proc TABULATE provides the special classification ALL which will help you to do what you want. See the example below:

proc tabulate data=sashelp.cars;
  class origin type;
 
table
    origin all=
"Column total"
    ,
    type all=
"Row total"
  ;
run;
Ask a Question
Discussion stats
  • 1 reply
  • 147 views
  • 0 likes
  • 2 in conversation