BookmarkSubscribeRSS Feed
mariusg
Obsidian | Level 7

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

1 REPLY 1
ucvikas
Obsidian | Level 7

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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