BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am making a table which has both a total row and a total column. The lower right cell is supposed to be a total of all the row totals above it. The column and row totals are calculated differently to compensate for weights, so the column totals cannot be used for this.

I can get the sum for the lower right cell using proc sql, but I can't figure out how to get it into the table. The best I can think of is using a macro to define a global variable, but I can't quite get that to work. Any suggestions?
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
The best feedback from forum subscribers will be gained by first sharing your code and an input and output data example (small but representative). Also, info about your SAS version, OS platform, sometimes helps, as well.

Scott Barry
SBBWorks, Inc.
Peter_C
Rhodochrosite | Level 12
proc tabulate/proc means SUMWGT statistic

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1537 views
  • 0 likes
  • 3 in conversation