Let's say I have the following data :
Trade Data :
TradeId,CptyID,Exposure
T1 , C3, 100
T2 , C2, 50
T3 , C6, 200
Business Hierarchy Data :
CptyID,L1-Acronym,L2-Acronym,L3-Acronym
C3, H1, H2, H3
C2, H4, H5, H2
C6, H4, H5, H6
ID Mapping :
Acronym,CptyID,Identifier
H1 , C1, B1
H2 , C2, B2
H3 , C3, B3
H4 , C4, B4
H5 , C5, B5
H6 , C6, B6
IE having hierarchies like : level Acronym(Identifier)
L1 H1(B1) H4(B4)
L2 H2(B2) H5(B5)
L3 H3(B3) H2(B2) H6(B6)
Trade T1 T2 T3
I would like to get the exposure by identifiers (B1, B2, B3, B4, B5, B6) where Exp(B1) = Exp(T1), Exp(B2) = Exp(T1)+Exp(T2)...
Joining them together doesn't work. It would give me 3 facts :
TradeID, CptyID, Exposure, L1-Acronym, L2-Acronym, L3-Acronym, Identifier
T1 , C3 , 100, H1, H2, H3, B3
T2 , C2 , 50, H4, H5, H2, B2
T3 , C6 , 200, H4, H5, H6, B6
and give me the wrong results as I would only get the exposures for the identifiers at Level 3 :
Identifier,ResultInLive,ExpectedResult
B1 , Null, 100 (Null because I have no facts associated directly to B1)
B2 , 50, 150
B3 , 100, 100
B4 , Null, 250
B5 , Null, 250
B6 , 200, 200
Another difficulty is that those dimensions can have a lot of members (>300K).
Kind regards,
Christophe