I have some PROC REPORT code that generates a report with 2 levels of grouping, but the RBREAK always just summarizes for everything. I get something like this for example:
Row1: Type A Before 100 200 300
Row2: After 400 500 600
Row3: Type B Before 100 200 300
Row4: After 400 500 600
Row5: Total 700 800 900
Is there any way to get PROC REPORT to summarize with that second level grouping intact? I have 140,000+ observations, and right now I’m duplicating every observation and setting the first level grouping variable to one constant value to get a manufactured total row with the second level grouping included:
Row1: Type A Before 100 200 300
Row2: After 400 500 600
Row3: Type B Before 100 200 300
Row4: After 400 500 600
Row5: Total Before 700 800 900
Row6: After 701 801 901
Or even if PROC REPORT can’t do anything automatically, is there a better way to get the total at the bottom? I wish I could use multi-label formats…but they don’t work in PROC REPORT as far as I know.
This is really easy to do with
proc tabulate: