![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Ryan, Here's one idea (haven't tried it out yet, but..): 1) In the Data Source View, change the fact table to a named query, which joins the fact table with the Products dimension table, to derive a CategoryID field, like: "select fact.*, prod.CategoryID from fact join prod on fact.ProductID = prod.ProductID" 2) Connect the derived CategoryID fact field to the CategoryID field in the Products dimension table 3) Now you could use the CategoryID as the key for the Products dimension, with a parent/child relation. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hello all, I am completly baffled with the following problem, and I hope someone here can help me: As a "learning" exercise, I am re-creating our AS database in AS2005. Our current one is in AS2000, and has been (and continues to) work fine. My problem is when I try to make a "Products" dimension. The structure of the underlying dimension table is as follows: ProductID CategoryID ParentCategoryID Description The fact table links to this table, via the ProductID. The dimension is a tree of the categories with the products as leaf nodes. Creating this in AS2000 was simple. I just specified a parent child relationship, selected the parent, and children, and it worked fine. In AS2005 I can't figure it out. If I tell the Dimension wizard the the "CategoryID" is key, it will let me create a parent child, but of course, this key isn't in the fact table, and that will bring back bad results. If I pick the "ProductID" as a key, the parent will try to reference back to a key that is not related to it, and if I pick both as keys, I don't have the option of creating a parent child relationship in the wizard. I really hope someone out there can help me out. Thanks, Ryan |
#6
| |||
| |||
|
|
Hi Ryan, When you have time, could you post the names of the XML elements/attributes that you had to edit - maybe someone will be able to suggest a way to modify them via BIDS; or they'll be candidates for future BIDS enhancements? Thanks, - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#7
| |||
| |||
|
|
Hello all, I am completly baffled with the following problem, and I hope someone here can help me: As a "learning" exercise, I am re-creating our AS database in AS2005. Our current one is in AS2000, and has been (and continues to) work fine. My problem is when I try to make a "Products" dimension. The structure of the underlying dimension table is as follows: ProductID CategoryID ParentCategoryID Description The fact table links to this table, via the ProductID. The dimension is a tree of the categories with the products as leaf nodes. Creating this in AS2000 was simple. I just specified a parent child relationship, selected the parent, and children, and it worked fine. In AS2005 I can't figure it out. If I tell the Dimension wizard the the "CategoryID" is key, it will let me create a parent child, but of course, this key isn't in the fact table, and that will bring back bad results. If I pick the "ProductID" as a key, the parent will try to reference back to a key that is not related to it, and if I pick both as keys, I don't have the option of creating a parent child relationship in the wizard. I really hope someone out there can help me out. Thanks, Ryan |
![]() |
| Thread Tools | |
| Display Modes | |
| |