BookmarkSubscribeRSS Feed
carlzack
Calcite | Level 5
Is there any way to automate populating the actual value in proc gkpi code. For example:

proc gkpi mode=raised;
speedometer actual=74 bounds=(0 69 73 100) /
colors=(red yellow green)
label="LDL Control";
run;

Instead of having to manually enter the actual value of 74, I would automatically like to populate this value which could be read in from a SAS dataset.
1 REPLY 1
DanH_sas
SAS Super FREQ
This proc does not currently take datasets; however you can use some dataset/macro techniques to get your data from a data set to N number of KPI's. It involves pushing your data set values into a macro array from the data step, then using a macro loop across the array to set individual values on the proc. I would also recommend using the HTMLPANEL tagset to simplify your dashboard creation.

Hope this helps,
Dan

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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