본문 바로가기
SAS

[Dashboard] sas 9.2 에서 dashboard kpi 사용 예...

by 기서무나구물 2011. 2. 18.

포스팅 목차

    Programming Category (English)728x90

    안녕하세요.
    sas9.2 에서 제공한 대쉬보드 기능 중 몇가지 예제로 만들었으니 참고하세요.

    사용방법은  첨부파일 다운로드해서 SAS 창에서 실행하거나  아래의 스크립트 복사해서 사용하세요.
    gtile 은 아주 드릴다운이 되어 아주 유용한 것으로 생각 됩니다.

    ===============================================================
     

    goptions reset=all device=javaimg hsize=10cm vsize=3cm;

    /* goptions reset=all device=javaimg;

    DEVICE= ACTIVEX, JAVA, ACTXIMG, or JAVAIMG*/
    ods html ;
    proc gkpi mode=raised; /* creates a three-dimensional look, default mode is basic */
        hslider /* creates horizontal slider, specify slider to generate vertical KPI */
        actual=-6.7 /* actual value displayed by the needle */
        bounds=(-10 -5 0 5 10); /* list of defined boundary values */
    run;
    quit;


    proc gkpi mode=raised;
       hslider actual=0.28
       bounds=(0 .22 .35 .50) /
       colors=(PaleTurquoise MediumTurquoise Teal);
       run;
    quit;


    proc gkpi mode=raised; /* creates a three-dimensional look, default mode is basic */
        hbullet /* creates horizontal bullet, specify bullet to create vertical KPI */
        actual=57 /* actual value displayed by the needle */
        bounds=(0 30 60 100)/* list of defined boundary values */
        / target=75; /* displays target bar within KPI */
    run;
    quit;

    proc gkpi mode=raised; /* creates a three-dimensional look, default mode is basic */
        dial /* dial KPI with center color to indicate actual color */
        actual=57 /* actual value displayed by the needle */
        bounds=(0 30 60 100)/* list of defined boundary values */
        / target=75; /* displays target needle within KPI */
    run;
    quit;

     

    proc gkpi mode=raised; /* creates a three-dimensional look, default mode is basic */
        speedometer /* speedometer with center color to indicate actual color */
        actual=.72 /* actual value displayed by the needle */
        bounds=(0 .30 .60 1) /* list of defined boundary values */
        / target=.85 /* displays target needle within KPI */
       type=half  /* type=half  valid values are full(default)/half/quarter*/
       lfont=(f="AMT" height=.5cm) label="Average Capacity"
       format="percent8.0"; /* format range and actual values in percent */
    run;
    quit;

    goptions reset=all device=activex hsize=10cm vsize=10cm;title1 'test';
    proc gtile
        data=sashelp.class;
        flow age
        tileby=(sex, age, name)
        / colorvar=height;
    run;
    quit;

    ods html close;

    첨부파일 gkpi_gtitle.sas

     

     

    * 통계분석연구회 : http://cafe.daum.net/statsas

    * 백승민홈페이지 : http://www.statwith.pe.kr


     



     백승민님의 파란블로그에서 발행된 글입니다.


    반응형

    댓글