BookmarkSubscribeRSS Feed
Jim_Cooper_hmsa
Obsidian | Level 7

I am developing a gauge report that needs to include the actual value as well as the formatted category value of the measure.  I would like to have the actual value presented in the label below the measure label and the formatted value below the gauge.  I have tried to embed  ^[newline] escape characters in the label option, but that doesn't seem to work.

 

code:

ods escapechar="^";

proc gkpi mode=basic;
speedometer actual=&ComCases. bounds=(0 1 5 15 25 35)
/ type=half
colors=(cx0000ff cx008000 cxFFFF00 cxFFA500 cxFF0000)
lfont=(f="Albany AMT" height=1cm)
label="COVID in the Community ^{newline 2} &ComCases."
name="community"
format="ComLev."
afont=(height=.5cm);
run;

1 REPLY 1
ballardw
Super User

You might try Title statements instead of label.

title "COVID in the Community";
title2 "&ComCases.";

or other title numbers if you already have one. This would also allow the use of the TITLE appearance options.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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