BookmarkSubscribeRSS Feed
yiapipi
Calcite | Level 5

Hi All,

is there anyway a solution to display (inside the histogram) the corrispondent % value,  instead the numeric value, leaving the total numeric value on top ?

in fact i don't have %value and it should be computed ....

the source data is enclosed

i hope to be clear ....

thank's a lot for your support

Pio Piccinin

 

4 REPLIES 4
DanH_sas
SAS Super FREQ

If you use STAT=PCT on your VBAR statement, do you get what you want?

yiapipi
Calcite | Level 5
Hi DanH_sas ,
thank's for your answer, but pct option, transform all values in %....
I need to show only the values in the histogram (green and yellow) and keep the total value as numerc on top ... could you help me in this trouble?

DanH_sas
SAS Super FREQ

There is no way to do this directly. You would need to turn off SEGLABEL, compute the percentages yourself, and use the annotation facility to put them on each segment.

yiapipi
Calcite | Level 5
My skill as sas programmers is not so deeper...
Could you address this topics ?

Thank's for all the support you are giving me


sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 4 replies
  • 1455 views
  • 0 likes
  • 2 in conversation