SSAS One to Many Dimensional Relationship

后端 未结 2 1972
名媛妹妹
名媛妹妹 2021-01-18 19:32

Question in SSAS for y\'all. I am attempting to define a One to Many relationship in an OLAP SSAS cube environment. However, i\'m running into problems with defining a pri

2条回答
  •  渐次进展
    2021-01-18 19:45

    you need to do 2 dimensions here.

    first, you should not add your date as part of the whole dimension. The date itself should exist as a dimension.

    second, as I see, you should join NYMEX Contract and Model Contract and make a dimension. You can join them on the DSV with a named query or make a SQL view or you can have both tables separated on the DSV and join them on the dimension.

    Third, NYMEX Trades is your fact table. Once you have both previous dimensions created, you should add them to the cube and join them with the fact table on the dimension relationship tab using the fields ContractName and TradeDate

提交回复
热议问题