Forum Discussion

bkr's avatar
bkr
Icon for Helper I rankHelper I
5 years ago
Solved

Use two relationships at the same time?

Hi gurus,   I have a simple dimension table with 3 guys in there:   Index Name 1 John 2 Jack 3 Joe and I have a fact table with transactions between these guys, where any of...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi bkr ,

     

    Based on your description, you can create a calculated table as follows.

    Table 3 = SUMMARIZE(ADDCOLUMNS('Table 2',"_Sender",LOOKUPVALUE('Table 1'[Name],'Table 1'[Index],[Receiver]),"_Receiver",LOOKUPVALUE('Table 1'[Name],'Table 1'[Index],[Sender])),[_Sender],[_Receiver],'Table 2'[Value])
    Result:

     

    Hope that's what you were looking for.

    Best Regards,

    Yuna

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.