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

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