My code looks as following
proc tabulate data=invand(where=(fodelselandgrupp^='Sverige')) order=formatted missing;
title 'GFB och ålder inkl missing';
class gfb alderinv kon ;
table (kon='' all='Totalt')*(alderinv='' all='Alla'),(gfb='GFB' all='Alla')*(N='' rowpctn='Row %' pctn<kon all>='Col %')/box= 'Ålder vid invandringsår';
format alderinv aldkat. gfb gfbgrupp. kon $kon.;
run;
title;
With output attached
I want the column percentage to sum up into 100% witihin the variable "kon", (witihin "Kvinnor" and "Män").
How can I do that?