SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


What is role playing dimension


What is role playing dimension

Author
Message
Shadab Shah
Shadab Shah
SSC-Addicted
SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)SSC-Addicted (451 reputation)

Group: General Forum Members
Points: 451 Visits: 798
Hi All,

I am a newbie to SSAS . I would like to know what is the meaning of Role playing dimension.

I search it on google , but in various articles various jargoans are present along with the description of role playing dimension , which i am not able to understand.

Could some body explained in simple term what is the meaning of Role Playing Dimension.
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28067 Visits: 13268
Suppose you have a fact table in which you store orders from an e-commerce website.
There are various dates linked to a transaction:

* order date = the date the customer ordered something on the website
* due date = the date the package should be delivered at the customer
* ship date = the date the package left your warehouse

This means there are 3 links to the date dimension of the data warehouse.
An example of a fact line may be:

CustomerID OrderDate DueDate ShipDate Quantity Amount
14587 20140606 20140610 20140608 1 25.87

When you load this data into SSAS, you have two options.

1. You create 3 seperate dimensions (Order Date, Due Date and Ship Date), each based on the same date dimension of the data warehouse. This results in 3 cube dimensions (the dimensions linked to the measure groups in the cube).

2. You only create 1 dimension, simply called Date. You add the same dimension 3 times to the cube (so 3 cube dimensions). You rename them to Order Date, Ship Date and Due Date. In the dimension usage tab, you link the correct keys. For example, you link the Ship Date Key with the Date Key of the date dimension. The same for Due Date and Order Date.

The last option is the role playing dimension. You have only 1 physical dimension - the date dimension - but you link it 3 times to the measure group (the fact table). Depending on the link used, the dimension behaves differently, hence the name "role playing".


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search