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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 499 views
  • 0 likes
  • 2 in conversation