샘플 15-B: 계산된 행 및 누락된 관계
이 Essbase 보고서 스크립트는 정보를 요약합니다. 보고에 필요한 관계가 개요에 없는 경우 가장 좋은 해결 방법은 계산된 행(또는 열)을 사용하는 것입니다.
이 샘플 보고서는 큐브 아웃라인의 일부가 아닌 북쪽/남쪽 그룹화의 간단한 정보 요약입니다.
Budget Payroll
Jan Feb Mar
==== ==== ====
Northern Cities
================
New_York 1,940 1,930 1,930
Boston 1,610 1,610 1,610
Chicago 1,630 1,630 1,630
San_Francisco 1,815 1,815 1,815
Seattle 1,415 1,409 1,409
Southern Cities
================
Denver 1,499 1,499 1,499
Los_Angeles 1,757 1,787 1,787
Dallas 1,002 1,002 1,002
Phoenix 900 900 900
Houston 834 834 834
Total Northern 8,410 8,394 8,394
Total Southern 5,992 6,022 6,022다음 스크립트를 사용하여 Sample 15-B를 생성합니다.
// Declare Calculated Rows to Sum Southern and Northern Cities
{ CALCULATE ROW "Total Southern" OFF
// initially, set operation to OFF
CALCULATE ROW "Total Northern" OFF }
<PAGE(Product,Scenario,Accounts)
{ RENAME "" } Product // all products, so blank out
// the Product Label
Budget
Payroll
<COLUMN(Year)
Jan Feb Mar
<ROW(Market) // Northern Cities
{ SETROWOP "Total Northern" + // Accumulate for Northern
SKIP 3
IMMHEADING // Put out heading now so text
// will go after it
Text 0 "Northern Cities" UCHARACTERS
}
New_York Boston Chicago San_Francisco Seattle
//Southern Cities
{ SETROWOP "Total Southern" + } // Accumulate for Southern
{ SETROWOP "Total Northern" OFF } // Stop Accumulation for Northern
{ SKIP Text 0 "Southern Cities" UCHARACTERS }
Denver Los_Angeles Dallas Phoenix Houston
{ SKIP
PRINTROW "Total Northern" // output calculated rows
PRINTROW "Total Southern"
}
!