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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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