![]() | ![]() |
Home |
|
|
WarehouseArchitect - User's Guide |
|
| Part 3 WarehouseArchitect Model |
|
| Chapter 14: Defining Multidimensional Objects |
You attach facts to fact tables. When you create a fact table, a fact with the same name as the table is automatically created.
You attach dimensions to dimension tables. When you create a dimension table, a dimension with the same name as the table is automatically created.
or
Select WAM-->List of Dimensions to create a dimension.
A list of objects of the selected type appears.
or
Click the New button.
An arrow appears at the beginning of the line.
or
Type a name and click the Equals button in the Code column.
or
Type a code and click the Equals button in the Name column.
You attach facts to fact tables, and dimensions to dimension tables.
You can only attach one table to each fact or dimension.
When you attach a fact or dimension to a table with no table type, the table becomes a fact table or a dimension table.
or
Select WAM-->List of Dimensions.
A list of objects of the selected type appears.
or
Select a dimension.
An arrow appears at the beginning of the line.
The List of Tables appears.
If you selected the List of Facts in step 1, the List of Tables displays fact tables, and tables with no table type.
If you selected the List of Dimensions in step 1, the List of Tables displays dimension tables, and tables with no table type.
The name of the selected table appears in the Table column.
A WAM can have a number of central fact tables linked to any number of dimension tables. The fact tables are usually the first tables you create when you create a WAM. Any other fact tables in the WAM are usually generated automatically as a result of aggregating or partitioning the central fact table. These fact tables form a hierarchy of facts.
A fact table is attached to a fact. When you create a fact table, WarehouseArchitect automatically creates a fact with the same name and attaches it to the table.
A dimension table is attached to a dimension. When you create a dimension table, WarehouseArchitect automatically creates a dimension with the same name and attaches it to the table.
The way in which you organize fact and dimension tables depends on the type of data warehouse schema you create.
A table symbol appears at the click position.
At creation, a table is named Tab_n, where n is the number of the table in the order of creation of objects in the model.
The table property sheet appears.
or
Type a name and click the Equals button in the Code column.
or
Type a code and click the Equals button in the Name column.
or
Select Dimension from the Type dropdown listbox
When you use a PDM as the basis for a WAM, you can define the existing tables as fact or dimension tables.
The table property sheet appears. By default, the table type is None.
or
Select Dimension from the Type dropdown listbox.
A symbol corresponding to the selected table type appears in the top left corner of the table symbol.
A fact table can have more than one attached fact. A dimension table can have more than one attached dimension.
or
Double-click a dimension table symbol.
The object property sheet appears.
If you selected a fact table in step 1, the List of Facts appears. It displays the facts attached to the table. By default, it contains a fact with the same name as the table.
If you selected a dimension table in step 1, the List of Dimensions appears. It displays the dimensions attached to the table. By default, it contains a dimension with the same name as the table.
If you selected a fact table in step 1, a list of available facts appears.
If you selected a dimension table in step 1, a list of available dimensions appears.
or
Select one or more dimensions.
Fact tables have associated facts, and dimension tables have associated dimensions.
When you modify the type of a fact or dimension table, you must indicate whether to simply detach the associated facts or dimensions from the table, or to delete them from the dictionary.
| Confirmation choice
| Result
|
|---|---|
| Delete the existing objects
| Object deleted from dictionary
|
| Detach only
| Object remains in dictionary but is no longer attached to the table
|
or
Double-click a dimension table symbol.
The object property sheet appears.
A confirmation message asks you how you want to delete the facts or dimensions associated with the table.
Metrics are attached to columns in a fact table. For example, the Sales Total metric is attached to the Sales Total column in the Sales fact table.
Attributes are usually attached to columns in a dimension table. For example, the Month attribute is attached to the Month column in the Time dimension table.
Attributes can also be attached to facts, for example in a matrix schema.
You create a metric or an attribute for a selected fact or dimension.
When the fact or dimension is attached to a fact table or dimension table, the metric or attribute is automatically attached to the same table.
or
Select WAM-->List of Facts.
A list of objects of the selected type appears.
or
Select a fact.
or
Click the Metrics button.
A list of metrics or attributes attached to the selected dimension or fact appears.
or
Click the New button.
An arrow appears at the beginning of the line, and the name of the table to which the selected fact or dimension is attached appears in the Table column.
or
Type a name and click the Equals button in the Code column.
or
Type a code and click the Equals button in the Name column.
You can create metrics and attributes from columns in the WAM.
or
Select WAM-->List of Facts.
A list of objects of the selected type appears.
or
Select a fact.
or
Click the Attributes button.
A list of metrics or attributes attached to the selected dimension or fact appears.
The List of Columns appears. It displays a list of available columns for the table to which the dimension or fact is attached.
The selected columns appear in the list of attributes or the list of metrics attached to the dimension or the fact.
You attach metrics to columns in a fact table. For example, you would attach the Total metric to the Total column in the Sales fact table to give the total sales.
You generally attach an attribute to a column in a dimension table. For example, you would attach the Year attribute to the Year column in the Date dimension table.
You can attach an attribute to a column in a fact table when the fact table is not linked to a dimension table. For example, you might attach the Product code attribute to the Product code column in the Sales fact table.
or
Select WAM-->List of Facts.
A list of objects of the selected type appears.
or
Select a fact.
or
Click the Metrics button.
A list of attributes or metrics attached to the selected dimension or fact appears.
or
Select a metric.
The List of Columns appears. It displays a list of available columns for the table to which the fact or dimension is attached.
The name of the selected column appears in the Column column.
You can display a list of all the metrics or all the attributes in the WAM.
or
Select WAM-->List of Attributes.
If you selected List of Metrics, the List of Metrics appears. It lists all the metrics in the WAM.
If you selected List of Attributes, the List of Attributes appears. It lists all the attributes in the WAM.
The tables belonging to this fact hierarchy are shown below.
The tables belonging to this dimension hierarchy are shown below.
The List of Hierarchies appears.
or
Click the New button.
An arrow appears at the beginning of the line.
or
Type a name and click the Equals button in the Code column.
or
Type a code and click the Equals button in the Name column.
Dimension Hierarchy appears by default in the Type column.
or
Select the Fact Hierarchy radio button to create a fact hierarchy, then click OK.
You add a SQL Cube expression to a fact or metric in the fact or metric property sheet. These property sheets can only be opened from the Multidimensional Hierarchy dialog box.
The SQL Cube expression is based on tables and columns. You must have a table listed for the fact, or a column listed for the metric, in order to type a SQL Cube expression.
You can use the Ellipses button from the property sheet of a fact or a metric to select a table for the fact, or a column for the metric.
or
Right-click on the metric in the Multidimensional Hierarchy dialog box.
The fact or metric context menu appears.
The property sheet appears.
The SQL Query Editor dialog box appears.
If you clicked the Zoom button, you can use the SQL Query Editor to select items to add to the SQL Cube expression.
You can add any number of formulas to a metric. A metric can have either a formula or a SQL Cube expression, but not both.
You add a formula to a metric in the metric property sheet. This property sheet can only be opened from the Multidimensional Hierarchy dialog box.
The metric context menu appears.
The metric property sheet appears.
The SQL Cube list box is grayed and the Formula box is ungrayed.
The retrieval automatically converts the tables you select into fact or dimension tables.
The tables are converted as follows:
| Original table
| Conversion to
|
|---|---|
| Parent
| A dimension table
|
| Child
| A fact table, if the original table is not also a parent table
|
| Self-referenced
| Not converted
|
| Nonreferenced
| A fact table
|
| Option
| When selected
|
|---|---|
| Retrieve facts
| Retrieves fact tables
|
| Retrieve metrics
| Retrieves metric tables
|
| Update existing facts
| Updates already existing fact tables. If you click the Ellipses button, you can use the List of Facts dialog box to select existing facts
|
| Retrieve dimensions
| Retrieves dimension tables
|
| Retrieve attributes
| Retrieves attributes. When not selected, disables Update existing dimensions option
|
| Update existing dimensions
| Updates already existing dimension tables. If you click the Ellipses button, you can use the List of Dimensions dialog box to select existing dimensions
|
| Rebuild multidimensional hierarchy
| Opens the Rebuild Multidimensional Hierarchy dialog box immediately after retrieving the multidimensional objects. For information on rebuilding the Multidimensional Hierarchy, see the chapter Creating a Multidimensional Model
|
The Retrieve Multidimensional Objects dialog box appears.
or
Select the List radio button, click the Question Mark button, select tables, and click OK.
or
Clear Rebuild Multidimensional Hierarchy.
The multidimensional objects are retrieved.
|
|