Designing 2005 Cube with SCD Type 2 Dimensions.

  • I have experience building SSAS 2005 cubes from a Star Schema using unique Surrogate Keys to link the Dimensions to the Fact Table. However I am having trouble with what would seem to be a common occurance.

    I am having trouble figuring out how to develop a Cube - "Data Source View" to link a fact table to Slowly Changing Dimension (SCD) Type 2 Dimensions based on the Natural Keys. For example ColA and ColB are the natural keys for a dimension in the Fact Table. The problem comes in that the ColA and ColB columns are not unique in the Dimension because it is a SCD Type 2. To unqiuely identify a Dimension Entry I also need to have specify a Date, to find the active entry (The Dimension has StartDate and EndDate).

    I can easily account for this in a SQL Query by saying:

    SELECT * FROM

    fact

    inner join dimension

    on fact.ColA = dimension.ColA

    AND fact.ColB = dimension.ColB

    AND fact.EntryDate BETWEEN dimension.StartDate and dimension.EndDate

    However I am unable to figure out how to do such a thing in the GUI for Data Source Views, when creating a Cube. Has anyone experienced this before?

    Thanks

  • You should add a surrogate key to your dimension tables. And join your fact to this surrogate key.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply