BookmarkSubscribeRSS Feed
Dick_Shryock
Calcite | Level 5

I have a table with 11 columns and 31 rows the first column is a description and the rest of the columns represent various counts for each description.

What I want to do in SAS is create a table that provides the following for columns 2 - 11:

Sum

Median

Mean

Max

This is really easy to do in excel but I can't seem to figure how to do it in SAS EG.

Thanks, Dick Shryock

Example Data:

DateAdmitObsAMAD/CLWBSTransLBECLDExpiredDayTotal
01/01/2013

44

0113001100177
01/02/2013440012403000171
01/03/2013410015623000202
Total1290141027100550
Median44.00.00.0130.00.03.00.00.00.0177.0
Mean43.00.00.3136.70.72.30.30.00.0183.3
Max440115623100202
1 REPLY 1
Reeza
Super User

Post in Enterprise Guide Forum and clarify your example data. Is that the data you have, your input data or your expected output? Also what version of EG do you have?

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
  • 1 reply
  • 1013 views
  • 0 likes
  • 2 in conversation