all groups > sql server data warehouse > february 2006 >
You're in the

sql server data warehouse

group:

SCD Type 2 -- not aggregating up the hierarchy


SCD Type 2 -- not aggregating up the hierarchy Dog
2/8/2006 9:54:42 AM
sql server data warehouse:
Hi,

I have an SSAS 2005 cube w/a product dimension which contains the
following hierarchy:

Company --> Store --> Department --> Product

I have just converted the Product dimension to be SCD Type 2, so that
we can preserve the history of the movement of a product from one
department to another. The new dimension table has the ScdStartDate,
ScdEndDate, ScdOriginalId, and ScdStatus attributes assigned to the
correct columns.

The product dimension is joined to the fact table on the ProductID.
Since the dimension is SCD type 2, there can be multiple rows in the
dim table for a given product ID, with only one being the current.

When I browse the cube using this dimension hierarchy, I find that
aggregations are working only at the ProductID level (i.e. the lowest
level). All other higher levels in the hierarchy seem not to have any
relationship with the Fact table (so they reflect sums for the whole
database), which renders the hierarchy useless.

The relationships between the tables all exist in the DSV, and are (I
believe) correct, but for some reason, they are not being seen in the
dimension.

Any suggestions?
Re: SCD Type 2 -- not aggregating up the hierarchy sim
2/9/2006 2:12:46 AM
[=2E..]
[quoted text, click to view]
[=2E..]
Is your ProductID a surrogate key (as strongly recommend) or a
nonunique key that only becomes unique in conjunction with valid_from
and/or valid_to?

Regards,

J=F6rg
AddThis Social Bookmark Button