Enhancing the Basic Cube with The Cube Editor
We will now expand our
cube to include data from the individual tables associated with the dimensions
we have already selected for our basic Revenue cube, as well as making
other enhancements consistent with those we made to the Expense cube.
These modifications will help to flesh out our cube model for its intended use
for financial reporting.
From the Analysis Manager
console, expand the Analysis Servers folder (as appropriate), and then expand
the Analysis Server name (shown as MOTHER), to see the underlying
databases, as illustrated below.
Illustration 29: Expand the Analysis Server
NOTE: Factors specific to our individual environments, such as the
presence of additional Analysis Servers, as well as other databases, will mean
the appearance of varying objects here.
- Expand the FinRep_DB database to see the
- Expand the Cubes folder, as displayed in Illustration
Illustration 30: Expand the FinRep_DB Cubes Folder
We will now extend our
new Revenue cube to include data from the related dimension tables,
among other enhancements. First, we will add the dimension tables we require
to the existing core cube, from which we will be able to derive more useful
dimension data, using the following steps.
From the cube tree, click the
new Fin_Rptg_Rev cube to select it.
Right click Fin_Rptg_Rev
cube, and select Edit from the context menu that appears.
The Cube Editor
presents itself once again; we see Revenue_fact_Query in the data tab, just as we left it above.
Click Insert from the
Click Tables from the
menu that appears, as shown.
Insert -> Tables from the Main Menu
Table dialog appears.
Select the store table
by clicking / highlighting it.
section of the dialog becomes populated with the columns of the store
table. The Select Table dialog now appears as shown in Illustration
The Select Table Dialog, Store Table Selected
Click the Add button (once
The store table
appears on the schema tab, while the Select Table dialog remains open.
Add the following additional tables, after the manner of the store
table insertion above:
10. Click Close on the Select Table
We note that joins
between the fact table and the dimension tables are already in place, using the
id keys in each. As many of us have come to realize, 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.
As a part of making our
cube user-friendlier for information consumers, we wish to substitute the
dimension names that it currently presents with more intuitive dimension
fields. Having browsed the data in our time_by_day table in the first
half of the lesson, we know that it contains fields whose date related
information would serve our users well. (To browse the data to get a look at
its makeup, review the relevant steps in Part 1). We
will use these fields in our model for a more user-friendly appearance in the
cube we ultimately produce.
11. In the Cube Tree, expand the existing Calendar.Time
dimension by clicking the "+" sign to its immediate left.
Beginning with the Calendar.Time
dimension, and proceeding to the remaining dimensions, we will substitute a
user-friendlier field than the original key number, from the related dimension
Select the Calendar Time
dimension level member (the single level under the Calendar.Time
dimension), as shown below:
Illustration 33: Calendar.Time Dimension as Currently Constructed
Right-click the Calendar
Time dimension level member.
Select Delete from the
Click Yes at the Confirm
Level Delete dialog to delete the member.
Perform steps 13 through 15 for
the Store and Product dimension level members, respectively.
We should now have each
dimension in place, with no levels under each of the Calendar.Time, Store
and Product dimensions. We will add dimension levels from the dimension
tables in the next steps.
Drag the following fields from
the time_by_day table over to drop onto the Calendar.Time
dimension in the cube tree, in the order shown:
Right-click on each of the
above newly added dimension levels, and rename each, respectively, to the
- Calendar Year
- Calendar Quarter
- Calendar Month
Dragging the fields
onto the folder in the order above, then changing their names, will result in
their alignment as shown below:
Calendar.Time Dimension with New Member Additions / Modifications