Hi, This is a follow up to a question I posted earlier. This time, I tried to do percentage calculations but not quite successful. Please see attachments: Data set: table.sas7bdat 2 tables I tried to create: Table2.xlsx Below are my SAS codes. I can calculate the column percentages correctly, but not the row percentages. Besides, I want to show the N and % side by side instead of two separate tables (one for N, another for %) like what I did here. How can I do that? /* Column percentages */ proc tabulate data=test.table; where temperature ~= 'warm' and month ~= 'december'; class month time; class temperature / mlf; table time=' ' all='Total', month=' '*(temperature=' ' all)*n=' ' month=' '*(temperature=' ' all)*colpctn=' ' ; run; /* Row percentages */ proc tabulate data=test.table; where temperature ~= 'warm' and month ~= 'december'; class month time; class temperature / mlf; table time=' ' all='Total', month=' '*(temperature=' ' all)*n=' ' month=' '*(temperature=' ' all)*rowpctn=' ' ; run; Thank you for any advice! Ken
... View more