Oracle OLAPOracle Express OLAP CubeThese are my personal notes that I use as a quick help in my work.
|
|
These notes correspond to version 6.3 of OLAP Express
Start administrator:
See "start administrator" in Introduction for attaching the databases
Right click on a dimension:
See "start administrator" in Introduction for attaching the databases
Sample program |
---|
|
Remember to not only save the program after modifying, but also save the whole
cube.
Compile the program with the little icon showing a cog wheel.
Run the program with the icon showing an arrow.
Dimension down: dim2, dimension across: dim1
try1 |
dim1_1
|
dim1_2
|
dim1_3
|
dim2_1 |
999
|
999
|
999
|
dim2_2 |
999
|
999
|
999
|
dim2_3 |
999
|
999
|
999
|
limit dim1 to all
limit dim1 to 'dim1_1'
limit dim2 to 'dim2_1'
try1 = 222 "--> only one cell affected
try1 |
dim1_1
|
dim1_2
|
dim1_3
|
dim2_1 |
222
|
999
|
999
|
dim2_2 |
999
|
999
|
999
|
dim2_3 |
999
|
999
|
999
|
limit dim1 to all
try1 = 333 "--> three cells affected, dim2 is still limited to 'dim2_1'
try1 |
dim1_1
|
dim1_2
|
dim1_3
|
dim2_1 |
333
|
333
|
333
|
dim2_2 |
999
|
999
|
999
|
dim2_3 |
999
|
999
|
999
|
limit dim1 to all
limit dim2 to all
try1=999
limit dim1 to 'dim1_1'
try1(dim2 'dim2_2')=222 "--> only one cell effected, but dim2 is not
limited
try1 |
dim1_1
|
dim1_2
|
dim1_3
|
dim2_1 |
999
|
999
|
999
|
dim2_2 |
222
|
999
|
999
|
dim2_3 |
999
|
999
|
999
|
limit dim1 to 'dim1_1'
try1 = 888 "--> one column affected, because dim2 is not limited
try1 |
dim1_1
|
dim1_2
|
dim1_3
|
dim2_1 |
888
|
999
|
999
|
dim2_2 |
888
|
999
|
999
|
dim2_3 |
888
|
999
|
999
|
try1(dim2 'dim2_2')=222 "--> one cell affected
try1 |
dim1_1
|
dim1_2
|
dim1_3
|
dim2_1 |
888
|
999
|
999
|
dim2_2 |
222
|
999
|
999
|
dim2_3 |
888
|
999
|
999
|
limit dim1 to all
limit dim2 to all
try1=0 " all put to 0
|
|
Result at point (1) | Result at point (2) |
Result at end, point (3) |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Call to lim2 is commented out
limit dim1 to all
limit dim2 to all
try1=0 " all put to 0
|
|
Result at point (1) | Result at point (2) Call to lim2 commented out |
Result at end, point (3) |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Use push and pop
limit dim1 to all
limit dim2 to all
try1=0 " all put to 0
|
|
Result at point (1) | Result at point (2) |
Result at end, point (3) |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Difference between limit .. keep
and limit ..
to
|
|
Use of limit .. to any
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Result at point (1) | Result at point (2) |
Result at end, point (3) |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Result at point (1) | Result at point (2) |
Result at end, point (3) |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Result at point (1) | Result at point (2) |
Result at end, point (3) |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
dim1_1
|
dim1_2
|
dim1_3
|
|
dim2_1 |
999
|
999
|
999
|
dim2_2 |
222
|
999
|
999
|
dim2_3 |
999
|
999
|
999
|