Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / February 2006

Tip: Looking for answers? Try searching our database.

SCD Type 2 -- not aggregating up the hierarchy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dog - 08 Feb 2006 17:54 GMT
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?
sim - 09 Feb 2006 10:12 GMT
[...]
>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.
[...]
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örg
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.