alt
Advertisement
Sponsored links
Online Training
Career Series
Exforsys
Exforsys arrow Tutorials arrow MSAS arrow Tutorial 14: MSAS : Building the Cube Part #3
Site Search


Tutorial 14: MSAS : Building the Cube Part #3
Article Index
Tutorial 14: MSAS : Building the Cube Part #3
Page 2
This is part 3 in MSAS : Building the Cube series, If you have not completed reading part 1 and 2 , please do so before continuing with this tutorial.

Tutorial 14: MSAS : Building the Cube Part #3

The next dimension that we need to create is the Time dimension. This is the most common dimension and inevitably forms a dimension of every cube. However, there are certain specific conditions that arise when we create the time dimension. In the Select Dimensions dialog box of the Cube Wizard we will chose time_by_day dimension table. The time dimension table is usually joined to the fact table by a time_id key.

On clicking Next we are prompted to select the type of dimension. This dialog is presented whenever the wizard senses a time or date column within the table selection provided. If there are multiple date columns, the user is given the opportunity to select the column on which to drive the date dimension. Else a drop down box defaults to a single available date column. In the current exercise we will not change the value in the drop down box but will select the time dimension radio button.

Clicking Next on the above screen will take the user to ‘Create the time dimension levels’ dialog box. The Wizard offers a number of date hierarchy options to the user. The beginning day, month of the year also can be specified. These settings are valuable in building cubes for organizations that follow the fiscal year.

The Wizard does not allow the user select date dimension levels. Hence the Advanced options dialog can be skipped and we click through to the Finish the Dimension wizard.

On clicking finish we will see the Time dimension added to the dimensions of the cube

The process of adding a store dimension and a customer dimension are similar to the process illustrated above. The user may go through the steps for practice and add these dimensions before proceeding to the next steps. With this we have reached the end of the process of building the cube. A fact table was selected and the dimensions were defined. The wizard has been given the inputs on where to find the values, measures that we want incorporated into the cube. Now the user must save the cube. Click Next in the above screen to proceed. The user is confronted with the message as below:

Since we want to count the fact table rows we will click Yes. The next message that will be encountered will be an error message as under:

The reason for this error message is apparent. The user has forgotten to ensure that the joins exist between the fact table and the Product and region dimension tables. This is a very common error and must be guarded against. The purpose of generating this error messages was to illustrate the most common mistake users can make while architecting the cube. This can however, be rectified manually by using the Cube Editor if matching keys are available in both tables. In the example below it is clear that there are no matching key values available and hence no direct join is possible. However, a ‘bridge’ table can be used to join the tables.

Let us see how we can do this. Let us first look at the sales_fact_1998 and the Region table. Go to the ‘Insert Table’ Icon on the tool bar as shown in the illustration. This invokes the Select Tables dialog box.



 
< Prev   Next >
Exforsys Offers
© 2008 Exforsys.com
Joomla! is Free Software released under the GNU/GPL License.
Page copy protected against web site content infringement by Copyscape