SQL NET - A Place to talk on MS SQL Server and other database tools

Talks on SQL Server, database development, data management techniques,SQLBI/SSIS/SSAS/SSRS etc. Want to publish something db related ? mail to bineeshthomas@gmail.com with subject line starting as "SQLNET"

SQL NET FORUM

Portal Maintained By : BINEESH THOMAS

Wednesday, April 21, 2010

How to Create an SSAS 2008 Hierarchy

Let me explain the with a simple date dimension example first. Let me also assume you are familier on how to create a data source, then a datasource view, and then create a cube with cube wizard. Then comes the attribute part. In SSAS 2008 BI Studio, only the key column will come by default as an attribute for a dimension.

So we can see sk_DateID as a single dimension. Double clickon th date dimension from the solution explorer, then you may have three panes ( in a tree view) . Attribute , Hierarchy and Data source view.










In the data source view, all the available columns from the dimension will be displayed. Right click on any columns and click –New attribute from Column.

This will create an attribute to the dimsnion. We can see it gets added in th attribute pane. Lets add MonthName, YearNumber And QuarterNumber .

Right Click on the MonthName attribute – properties. Change the Key column attribute. Add MonthNumber and YearNumber to the collection. Change the Namecolumn to MonthName and Value column to monthNumber.

Rightclick on the quarter attribute , Change the key column to QuarterNumber and YearNumber. Name column and Value Column to QuarterNumber

So now we have set the Attributes. Next step is to create attribute relationship. Take the “Attribute relationship” tab. Rt click on the sk_DateID . Click on New relationship, Select DateValue from the rightside combobox in the dialogue box. Give Ok.

Right click on DateValue capsule box – New relationship, Select MonthNumber,

Repeat the same for linking MonthNumber with quarterNumber and QuarterNumber with YearNumber. Finally the attribute relationship page will like below image.


Now go back to dimenionStructure tab. Drag Year attribute to the hierarchy tab, Then drag quarter just below, then month, then date. Now we are ready with Data dimension with a simple hierarchy and attributes.

Labels: , , , ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

Free Domain Name - www.YOU.co.nr!