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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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