Click here to monitor SSC
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
Old Hand
Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)

Group: General Forum Members
Points: 332 Visits: 1603
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 (29 views, 9.00 KB)
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16544 Visits: 13210
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?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Maxer
Maxer
Old Hand
Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)Old Hand (332 reputation)

Group: General Forum Members
Points: 332 Visits: 1603
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