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

CFC_SAS_Communities_400x225.jpgCFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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