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;
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.
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!
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.