Oracle9i OLAP User's Guide Release 2 (9.2.0.2) Part Number A95295-02 |
|
|
View PDF |
The following statement maps the dimension join keys for a cube named ANALYTIC_CUBE_AW
in the XADEMO
schema. Join key relationships are specified for four dimension/hierarchy combinations:
PRODUCT_AW/STANDARD
CHANNEL_AW/STANDARD
TIME_AW/YTD
GEOGRAPHY_AW/CONSOLIDATED
.
The fact table is called XADEMO_AW_SALES_VIEW_4
. It stores lowest level data and embedded totals for all level combinations.
execute cwm2_olap_table_map.Map_FactTbl_LevelKey ('XADEMO', 'ANALYTIC_CUBE_AW','XADEMO', 'XADEMO_AW_SALES_VIEW_4', 'ET', 'DIM:XADEMO.PRODUCT_AW/HIER:STANDARD/GID:PRODUCT_GID/LVL:L4/COL:PRODUCT_ET; DIM:XADEMO.CHANNEL_AW/HIER:STANDARD/GID:CHANNEL_GID/LVL:STANDARD_1/COL:CHANNEL_ET; DIM:XADEMO.TIME_AW/HIER:YTD/GID:TIME_YTD_GID/LVL:L3/COL:TIME_YTD_ET; DIM:XADEMO.GEOGRAPHY_AW/HIER:CONSOLIDATED/GID:GEOG_CONS_GID/LVL:L4/COL:GEOG_CONS_ET;');
The following statement maps the F.SALES_AW
measure to the SALES
column in the fact table.
execute cwm2_olap_table_map.Map_FactTbl_Measure ('XADEMO', 'ANALYTIC_CUBE_AW', 'F.SALES_AW', 'XADEMO', 'XADEMO_AW_SALES_VIEW_4', 'SALES', 'DIM:XADEMO.PRODUCT_AW/HIER:STANDARD/LVL:L4/COL:PRODUCT_ET; DIM:XADEMO.CHANNEL_AW/HIER:STANDARD/LVL:STANDARD_1/COL:CHANNEL_ET; DIM:XADEMO.TIME_AW/HIER:YTD/LVL:L3/COL:TIME_YTD_ET; DIM:XADEMO.GEOGRAPHY_AW/HIER:CONSOLIDATED/LVL:L4/COL:GEOG_CONS_ET;');