You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
68
68
## Calculated Member in Measure
69
69
70
70
This calculated member only coes a calculation with both of the existing Measures. The Forula holds the calculation instruction. The Formula Expression is a MDX expression.
@@ -74,7 +74,7 @@ This calculated member only coes a calculation with both of the existing Measure
74
74
<roma:CalculatedMemberid="_cm1"name="Calculated Member 1"formula="[Measures].[Measure1-Sum] / [Measures].[Measure2-Count]"/>
75
75
76
76
```
77
-
77
+
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
78
78
## Calculated Member in Dimension
79
79
80
80
This calculated member has also a Formula. Additionaly it references the Hierarchy where it should be addes and a Parent Expression that defins unter wich Element it should be added. The Parent Expression is a MDX expression.
@@ -85,25 +85,25 @@ This calculated member has also a Formula. Additionaly it references the Hierarc
85
85
<roma:CalculatedMemberid="_cm2"name="Calculated Member 2"formula="[Measures].[Measure1-Sum] / [Measures].[Measure2-Count]"parent="[theDimension].[theHierarchy].[All theHierarchys]"hierarchy="_hierarchy"/>
86
86
87
87
```
88
-
88
+
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
89
89
## Cube and DimensionConnector and Measure
90
90
91
91
The cube is defines by the DimensionConnector and the MeasureGroup and most importantly the calculated members.
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
39
39
## Level
40
40
41
41
The level is the most basic element of a hierarchy. It defines the granularity of the data in the hierarchy. To create a Level we need do set the key column, which is the column that uniquely identifies the Level in the table. In this example we use the `KEY` column of the `Fact` table as the key column of the level.
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
49
49
## Hierarchy
50
50
51
51
A hierarchy is a collection of levels that defines the structure of data within a dimension. It provides a name for the group the contained Level elements.
@@ -56,10 +56,10 @@ Additionally, a primary key column can be specified for the hierarchy. The prima
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
63
63
## Dimension
64
64
65
65
The Dimension is the main element of the cube. It defines the structure of the data in the cube. The dimension can contain one or multiple hierarchies. In this example we use one hierarchy, which contains one level.
@@ -69,7 +69,7 @@ The Dimension is the main element of the cube. It defines the structure of the d
Copy file name to clipboardExpand all lines: docs/cubeserver/tutorial/tutorial.cube.hierarchy.hasall.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ group: Hierarchy
4
4
kind: TUTORIAL
5
5
number: 2.3.4
6
6
---
7
-
# Hierarchy - HasAll-Level
7
+
# Hierarchy - Level - HasAll
8
8
9
9
In a hierarchy, the top level can sometimes be a special case. Typically, levels are created using a Level object, along with a reference to a column and a query on the hierarchy. However, there are situations where no dedicated column or table entry exists for the top level. For example if you want to represent a grand total. In such cases, you can generate a generic top level that serves as a final aggregation for all members of the level below.
10
10
@@ -36,58 +36,58 @@ The cube defined in this example is based on three table: Fact.
36
36
</roma:DatabaseSchema>
37
37
38
38
```
39
-
39
+
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
40
40
## Query
41
41
42
42
This Query references the Fact table and will be udes for the Cube and all Hierarchies in same way.
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
61
+
## Hierarchy without hasAll Level
60
62
61
-
## Hierarchy with hasAll Level and defaut names
62
-
63
-
This hierarchy sets the attribute `hasAll` to true, which means that a top level will be generated. The hierarchy will contain the levels defined in the Level object and an additional top level with the default Name for the All-Level and the All-Member.
63
+
This Hierarchy sets the attribute `hasAll` to false, which means that no top level will be generated. The hierarchy will only contain the levels defined in the Level object.
64
64
65
65
66
66
```xml
67
-
<roma:Hierarchyid="_hierarchy_hasall_simple"name="Hierarchy - with HasAll"levels="_level"hasAll="true"primaryKey="roma:PhysicalColumn _col_fact_key"query="roma:TableQuery _query"/>
67
+
<roma:Hierarchyid="_hierarchy_hasall_no"name="Hierarchy - Without HasAll"levels="_level"primaryKey="_col_fact_key"query="_query"/>
68
68
69
69
```
70
+
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
71
+
## Hierarchy with hasAll Level and custom names
70
72
71
-
## Hierarchy without hasAll Level
72
-
73
-
This Hierarchy sets the attribute `hasAll` to false, which means that no top level will be generated. The hierarchy will only contain the levels defined in the Level object.
73
+
tHis hierarchy sets the attribute `hasAll` to true, which means that a top level will be generated. The hierarchy will contain the levels defined in the Level object and an additional top level with the custom Name for the All-Level and the All-Member.
74
74
75
75
76
76
```xml
77
-
<roma:Hierarchyid="_hierarchy_hasall_no"name="Hierarchy - Without HasAll"levels="_level"primaryKey="roma:PhysicalColumn _col_fact_key"query="roma:TableQuery _query"/>
77
+
<roma:Hierarchyid="_hierarchy_hasall_complex"name="Hierarchy - with HasAll and Names"levels="_level"allLevelName="theAllLevelName"allMemberName="theAllMemberName"hasAll="true"primaryKey="_col_fact_key"query="_query"/>
78
78
79
79
```
80
+
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
81
+
## Hierarchy with hasAll Level and defaut names
80
82
81
-
## Hierarchy with hasAll Level and custom names
82
-
83
-
tHis hierarchy sets the attribute `hasAll` to true, which means that a top level will be generated. The hierarchy will contain the levels defined in the Level object and an additional top level with the custom Name for the All-Level and the All-Member.
83
+
This hierarchy sets the attribute `hasAll` to true, which means that a top level will be generated. The hierarchy will contain the levels defined in the Level object and an additional top level with the default Name for the All-Level and the All-Member.
84
84
85
85
86
86
```xml
87
-
<roma:Hierarchyid="_hierarchy_hasall_complex"name="Hierarchy - with HasAll and Names"levels="_level"allLevelName="theAllLevelName"allMemberName="theAllMemberName"hasAll="true"primaryKey="roma:PhysicalColumn _col_fact_key"query="roma:TableQuery _query"/>
87
+
<roma:Hierarchyid="_hierarchy_hasall_simple"name="Hierarchy - with HasAll"levels="_level"hasAll="true"primaryKey="_col_fact_key"query="_query"/>
88
88
89
89
```
90
-
90
+
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
91
91
## Dimension
92
92
93
93
The Dimension that containes all the hierarchies.
@@ -97,22 +97,22 @@ The Dimension that containes all the hierarchies.
<roma:Hierarchyid="_hierarchy_hasall_simple"name="Hierarchy - with HasAll"levels="_level"hasAll="true"primaryKey="_col_fact_key"query="_query"/>
134
133
<roma:Hierarchyid="_hierarchy_hasall_no"name="Hierarchy - Without HasAll"levels="_level"primaryKey="_col_fact_key"query="_query"/>
135
134
<roma:Hierarchyid="_hierarchy_hasall_complex"name="Hierarchy - with HasAll and Names"levels="_level"allLevelName="theAllLevelName"allMemberName="theAllMemberName"hasAll="true"primaryKey="_col_fact_key"query="_query"/>
135
+
<roma:Hierarchyid="_hierarchy_hasall_simple"name="Hierarchy - with HasAll"levels="_level"hasAll="true"primaryKey="_col_fact_key"query="_query"/>
0 commit comments