BookmarkSubscribeRSS Feed
Olaaaaaa
Calcite | Level 5
Hi, if someone could help me, Please!!

I have a summary table with three analysis-variables in top of the table and three class-variables in the left in the table. What I know so far is that you can only sort on class-variables, but that is not enough for me. I have made a "sort-report" on one of my analysis-variables beforer the summary tables, but that does not help me either.

There must be a way to get the data sorted (descending order) by one of the analysis variables, but how do you do??

Olaaaa
1 REPLY 1
LinusH
Tourmaline | Level 20
If your analysis variable is not FREQ-based, I don't think you can do this in PROC SUMMARY/MEANS. You could output your summary to a table, sort it the way you want, and then make a report using PROC PRINT...

/Linus
Data never sleeps

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1000 views
  • 0 likes
  • 2 in conversation