Who is online?  0 guests and 0 members
Home  »  Articles  »  Creating dimensions in SSAS 2005 and 2008 -- differences

Creating dimensions in SSAS 2005 and 2008 -- differences

change text size: A A A
Published: 7/6/2010 by  indupriya  - Views:  [1412]  

This article discusses the procedure to create dimensions in SAS 2005 and 2008.

In both SSAS 2005 and 2008 we can create dimensions using wizards.  The biggest difference is in 2005 the wizard asks lot more questions than in 2008.  In 2008 the wizard is a lot simpler.

Creating a dimension In SSAS 2005

The dimension wizard allows greater flexibility than the cube wizard

·         The wizard will add all attributes and try to identify hierarchies by default.

·         It can build standard, time and server time dimensions

·         It will ask about the type of dimension

·         It will allow you to identify parent-child attributes.

 

Open or create new SSAS project (BIDS).  Make sure that the data source and data source views are defined. (screenshot below).

Screenshot 1

 

You can create a dimension by right clicking on the dimension in the solution explorer of the BIDS environment.  This brings up the dimension wizard.

Screenshot 2

 

 The dimension wizard has two options to choose from. 

  • Build the dimension using a data source (more common) Gives the autobuild tick box.  If this is chosen the wizard will create the attributes and hierarchies for you.
  • Build the dimension without using a data source.

Screenshot 4

 

Click Next using the first option with the auto build ticked. The next screen shows the default data source view specified by the project.

 Screenshot 6

 

In the next screen (dimension type screen) it allows you to choose from the following:

  • Standard dimension
  • Time dimension
  • Server time dimension

 

Screenshot 5

 

If you choose server time and click next -- this will allow you to choose the first calendar day and last calendar day, first day of the week and also the time periods (year, half year, quarter, month, week, date etc)Screenshot 13

If we go back and choose a standard dimension for our purpose and click next, the main dimension table screen appears -- choose the main dimension table (eg: dim_region) and choose the Key Columns (dim_region_key) .

Screenshot 8

 

Also choose the Column containing the member name.  This is optional but choosing this will help users get more meaningful data.  This is because usually Key columns represent some kind of Id values and does not mean anything to the user.  But if you choose meaningful attributes like full Name the user will be seeing the Region name instead of the Key column value.

Click next after choosing the member column name.

 

In the next screen select dimension attributes, the wizard automatically selects all the attributes for both the tables.  But you can unselect some of the attributes based on your requirement.

Scrrenshot 9

For our dimregion dimension we can choose the attributes that represent the region such as the Region Manager.   Click next

In the specify dimension Type screen -- Usually Regular is chosen

Screenshot 10

 

Define Parent-Child Relationship -- This is mainly used if you have a hierarchical structure for example an employee reporting to a manager.  Click next without choosing anything for our example.

Scrrenshot 11

In the detecting hierarchies screen -- click next if you agree with the hierarchies that the wizard finds. 

Scrrenshot 12

 

 

 Screenshot 14

 

2008 dimension wizard is simpler than the 2005 dimension wizard

 

  • The wizard will only add the primary keys as attributes by default
  • It can build a dimension from a table, create a time dimension table in the source, create a time dimension without a table (server type dimension) or create a non-time table.

 

Creating a dimension in SSAS 2008

The main differences are as follows:

 When you right click on the Dimension in the Solution Explorer and click New dimension, the Dimension wizard appears with the same Welcome screen.  When you click next, the screen now shows 4 options to build the dimension instead of just 2 as seen in SSAS 2005 (screenshot below)

2008 Screenshot 2

 2008 Screenshot 1

·         Use an existing table

·         Generate a time table in the data source (Should have write permissions to do this)

·         Generate a time table on the server

·         Generate a non time table in the data source Template  (there are some existing templates)

 

For the example purpose I am choosing the existing table option. Click Next

 

Choose the Main Table – DimRegion Key Columns and also Choose the Name Column (Region Name)

 

Click Next.  In the next screen select Related Tables.  Click Next.  Choose the Dimension Attributes or select all and Click Next as shown below.

 

 2008 Screenshot 3

 

 

This screen is a bit different from the SSAS 2005 screen in that it does not show the Member name column that we have chosen (Region Name) as we have chosen that column to be the name.

Click Next after selecting the attribute names (if you want to change from what was already selected). 

 

Here the wizard goes directly to the last screen as below

 

 2008 Screenshot 4

 

 

The wizard does not go into the steps of – Parent Child, dimension types, Hierarchies as in 2005.

 

You can now name the dimension and click finish. This creates the dimension.

 

 

 

 

 

 

Click Next and the wizard will take you to the last screen.  You can now name the dimension and complete the wizard.

 
0
/5
Avg: 0/5: (0 votes)

Comments (no comments yet)

Most Recent Articles