Hello Everyone Probably another simple question but I am stuck. I have a data set that looks something like the following: id fabric color location price fiveormore 1 blue store $ 4.99 no 2 black warehouse $ 6.00 yes 3 red warehouse $ 2.00 no 4 blue store $ 10.00 yes 5 black store $ 7.50 yes 6 red warehouse $ 10.00 yes 7 blue store $ 5.00 yes 8 black warehouse $ 3.00 no 9 red store $ 1.00 no 10 blue store $ 5.00 yes What I am trying to tabulate the count of each color that are say $5.00 or more per location which I can do pretty easily but I need another column that is the percentage of the grand total of the color regardless of location. Something like: Store Warehouse color count % count % Blue 3 75.0 0 0 Black 1 33.3 1 33.3 Red 0 0 1 33.3 I have done something like below but, obviously, it is not really giving me what I want. PROC FORMAT; picture pctf (round) other='09.9'; RUN; proc tabulate data = birth.lowbirthweight17; class color location; table county, location*(n=' ' pctn<color>*f=pctf.); where fiveormore = 'Yes'; run; I just can't quite figure out how to do it. Any help would be greatly appreciated.
... View more