Sorry if this has been answered, I've searched but had a really hard time getting anything close to right. So, in proc tabulate, I keep running into an issue where I want to be able to create tables that have a Total column, but it's obviously a little more complicated than that. For example, let's say I need to make a table that has the appropriate statistic columns for Arizona participants, and then the stat columns for all participants. If I limit the where statement to be where State = Arizona, obviously the total column (using All) will only actually include Arizona participants, which is not what I want. A workaround for smaller number of tables is to make one table that's not limited, and then one that is limited, and copy and paste, but that's not really something I want to do when I have 90 sets of tables, one set for each state.
The only thing that comes to my mind is creation of some sort of dummy variable, but I'm not sure how to go about that.
EDIT:
Desired table (in this particular case I'm searching for help on, I guess it's not a column, but if the solution ends up only working for a column I could probably restructure my table). I ultimately want to have it make one file for each state, and in each file each of the questions is broken down individually, showing the All-States total and the State Total. I have a macro set up to do that.