a SCD dimension represent a customer for a point in time.
So there is no need to add any time information around this dimension.
simply use your default time dimension to display historical sales.
so if a customer has bought a product last year and this year, and this
customer has changed (like his location has changed from NY to Boston
between these 2 sales)
then you'll see a sales for NY in 2004 and in Boston in 2005, but its the
same customer.
You don't have to join anything else except your surrogate key.
if you don't have a surrogate key in your customer dimension, then its not a
good SCD and you have to creatre this surrogate key.
"Dip" <soumyadip.bhattacharya (AT) gmail (DOT) com> wrote
Quote:
Hi Deepak,
Thanks for your reply.
Actually Effective Year and Effective Month are just recorded in the
customer dimension but they are not included in the dimension
hierarchy. Then this Effective Month get joined with the month back in
fact table so that I can just use my Time dimension to filter through
"What was my sales figures last year or before compared to this year".
I have got it working but I am just bit concerned that I have two joins
for Customer Dimension back to fact table, which is Dimension surrogate
key and Effective Month. I am not sure whether this is a best practice.
Can you please provide me some guidance on this Deepak?
Cheers.
Soumyadip |