Hi Rick, Thank you for your answer. I have attached a test file in excel. The code I have tried is: proc freq data=test_EG; tables antalbarn; run; proc sgplot data=test_EG; vbar antalbarn / stat=percent statlabel datalabel; format antalbarn barn.; xaxistable antalbarn; run; the variable "antalbarn" means how many children do a person have and the values are 0 to 2. And when I do the xaxistable it SUM and when there is 4 persons with two children the xacistable respond with 8 (=4*2) where I would like a table that respond with 4 persons has two children as in the in proc freq table. I hope that it makes sense? Thanks. /Ane
... View more