BookmarkSubscribeRSS Feed
olsengf
Fluorite | Level 6

I have what I assume would be an easy question to answer, but after a few days of searching I can't find any examples of what I'm trying to do . I have a very straightforward PROC REPORT that displays subtotals and the grand total grouping on a single column. Instead of having the subtotals displayed after each value that I am grouping on, I would like all of the subtotals displayed at the bottom, right above the grand total. Is there an option in compute to display these subtotals at the bottom of the report?

2 REPLIES 2
PaigeMiller
Diamond | Level 26

You could probably do the computations in PROC SUMMARY, then "sort" the output to have the subtotals just above the grand total. Then run PROC REPORT.

--
Paige Miller
ballardw
Super User

You will likely get a better answer if you provide data in the form of a working data step and your current proc report code plus the expected results.

Often custom reports require some modification of the data to better align with the tools in Proc Report (or other procedures) options.

 

There is a reason that SAS has published books just on using Proc Report.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 467 views
  • 0 likes
  • 3 in conversation