I am new to Dimensional Data Modeling. I have one dimension and 2 fact tables:
The one fact table (fact1) is joined to the dimension using the surrogate key. No problems here. I cannot seem to figure out what is the best way to join the dimension to the second fact table (fact2). If it was a relational database design I would have used the NaturalKey2 on fact2 table: (NaturalKey1 + NaturalKey2 make a record unique in the dimension table).
i.e.
DIMENSION
SurogateKey | NaturalKey1 | NaturalKey2 | Current
1 | a1 | b1 | 0
2 | a1 | b2 | 1
3 | a2 | b3 | 1
FACT1
(fk to Dimension)
1
2
3
FACT2
a1 ?
a2 ?
Do I use a bridge dimension that has only NaturalKey2 and use the SK from that dimension to fact2? Something like that
DIMENSION 2
SurogateKey | NaturalKey2
1 | a1
2 | a2