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 primary key. Example tables are below. Relationships between the first 3 tables are easily defined (TradeDate, NYMEX Trades & NYMEX Contract). However, my goal is to create a one to many relationship between NYMEX Contract and Model Contract. In other words, the data from 1 NYMEX Contract will be utilized multiple times in the Model Contract dataset.
Table: TradeDate
- TradeDate (PK)
- Year
- Month etc...
Table: NYMEX Trades (NO PK)
- ContractName
- TradeDate
- Price
Table: NYMEX Contract
- ContractName (PK)
Table: Model Contract
- ModelContractName (PK)
- ContractName
I need to create a one to many relationship between NYMEX Contract and Model Contract...however my PK is on the wrong column in Model Contract. Any ideas?
To help clarify - i am attempting to define a dimension --> dimension relationship. The Table "Model Contract" is a lookup table.