The "Select the
Columns that Define the Parent-Child Data Hierarchy"dialog appears. We
will "fill in" the selector boxes in the following steps:
Select account_id as the member
We will use account_id
as the index that uniquely defines our member accounts.
Select account_parent as the
The account parent is
the account to which the account "rolls" in summary fashion, and is identified
in the account table to provide for hierarchical design just such as this. The
parent key acts as the "pointer" to guide rollups of data, as we shall see
Select account_description as
the member name.
The dialog appears with
our selections below.
The Completed Select the Columns that Define the Parent-Child Data Hierarchy
Click Next again to skip the Select
Advanced Options dialog.
The Finish the
Dimension Wizard dialog appears.
Type the word Account
into the Dimension Name box.
Uncheck the checkbox (click it
once) for Share This Dimension with Other Cubes.
The dialog appears
(with expanded Preview), with our selections as shown below.
The Completed Finish the Dimension Wizard Dialog
provides a scrollable view of the hierarchy that our selections will generate.
Click Finish to close
the Dimension Wizard.
The dialog disappears,
leaving the schema view as depicted below, after arrangement:
The (Arranged) Schema View with Added Dimension Tables
Note that joins between
the fact table and the dimension tables are already in place, using the id keys
in each. This will often not be the case in a real world design effort, where
the appropriate joins (perhaps not as straightforward as those found in our
model) would need to be created.
For a practical
discussion surrounding, and an examination of the uses of, parent-child dimensions,
see Article Four of our series, Parent-Child Dimensions.