Hi SAS-Users,
i build one stored process with some code to display key performance indicators in the SAS Web Report Studio.
The Problem :
when i write the following lines :
proc gkpi mode=raised;
speedometer
actual=.55
bounds=(0 .40 .60 1)/target=.85
lfont=(f="Albany AMT" height=.5cm)
label="Test1"
format="percent8.0";
run;
proc gkpi mode=raised;
speedometer
actual=.55
bounds=(0 .40 .60 1)/target=.85
lfont=(f="Albany AMT" height=.5cm)
label="Test2"
format="percent8.0";
run;
I get two kpis over a stored process into the SAS Web Report Studio.
Is there a chance to display the kpis side by side and not among each other?
I tried to write the following with ods tagsets
ODS tagsets.sasreport12 event=row_panel(start);
/* Close 4th and last column of Row #1 */
ODS tagsets.sasreport12 event=column_panel(start);
/* Close first panel */
ODS TAGSETS.sasreport12 event = panel(start);
proc gkpi mode=raised;
speedometer
actual=.55
bounds=(0 .40 .60 1)/target=.85
lfont=(f="Albany AMT" height=.5cm)
label="Absatz 1"
format="percent8.0";
run;
ODS tagsets.sasreport12 event=column_panel(finish);
ODS tagsets.HTMLpanel event=column_panel(start);
proc gkpi mode=raised;
speedometer
actual=.55
bounds=(0 .40 .60 1)/target=.85
lfont=(f="Albany AMT" height=.5cm)
label="Absatz 2"
format="percent8.0";
run;
ODS tagsets.sasreport12 event=row_panel(finish);
/* Close 4th and last column of Row #1 */
ODS tagsets.sasreport12 event=column_panel(finish);
/* Close first panel */
ODS TAGSETS.sasreport12 event = panel(finish);
again the kpis are displayed among each other in the SAS Web Report Studio.s
Is there a solution to display n-kpis side by side?
Thanks and regards from Germany,
Marius
Hi Marius
There is no direct way to display graphs side by side using proc GKPI . first you have to use proc GKPI then proc gslide which will create .png files and then you can use proc greplay to place them on the same page ;
if you require code you can write to me . but that is the only way i know which can be used to place multiple graphs on same page.
thanks
Vikas
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.
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.
Ready to level-up your skills? Choose your own adventure.