BookmarkSubscribeRSS Feed
sascode
Quartz | Level 8

Hello,

I need to use proc sgpanel to create horizontal bar for my numerical variable  for each category at different years.

Everything works fine except an issue in the way how categories are ordered in plot.

I created another numerical variable to reorder my categories but again the plot is not changed.

I would like to see some suggestions related to this problem.

Thanks.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

First, please go back and edit your subject line so that it contains a brief description of the actual problem. This helps everyone, especially if someone else has a similar problem to yours.

 

In PROC SGPANEL use the GROUPORDER= option.

--
Paige Miller
sascode
Quartz | Level 8
Thanks for your suggestion,
i solved by specifying discreteorder in colaxis steatement.

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 686 views
  • 1 like
  • 2 in conversation