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


AdventureWorksDW-No Role Playing Dimensions?


AdventureWorksDW-No Role Playing Dimensions?

Author
Message
Maxer
Maxer
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1800 Visits: 1624
I'm trying to read up on SSAS and going through some tutorials.
They show the DimDate and FactResellerSales.

What I don't understand is how Fact can have 3 date dimensions all to the same DimDate table.

Kimball (and what I though was common sense at least in my head) says you need a role playing dimension.

I assume I am missing something here?


Attachments
RolePlayingDim.png (43 views, 9.00 KB)
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (60K reputation)SSC Guru (60K reputation)SSC Guru (60K reputation)SSC Guru (60K reputation)SSC Guru (60K reputation)SSC Guru (60K reputation)SSC Guru (60K reputation)SSC Guru (60K reputation)

Group: General Forum Members
Points: 60129 Visits: 13297
Those are the role playing dimensions.
You have the order date, the ship date and the due date.

This is realized by joining 3 times to the same date dimension, but each time using a different date column from the fact table.

OrderDateKey -- DateKey
ShipDateKey -- DateKey
DueDateKey -- DateKey

You could use 3 different views on top of the date dimension, but the result is the same.
When you create the cube, you add the date dimension three times as a cube dimension and there you can rename them as well.


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
Maxer
Maxer
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1800 Visits: 1624
OF COURSE, I forgot about the CUBE and it being an abstraction layer.

So when it generates itself it will just know that it joins to the Date dimension and the cube will populate up as needed.



Thanks!
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