Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Join a calculated table with an 'original' table

Hi all, 

 

I am trying to combine a calculated table with an 'original' table. 

 

Table A holds transactions per row. Each transaction is to be allocated to multiple customers the breakdown of share per transaction per client is available in table B. Table B is the calculated table. 

 

As output I need everyt transaction to duplicate based on the participating clients. I have visualised this below. 

 

The reason this needs to be a new table is because after merging, additional calculations / columns will be added. 

 

Thank you in advance,

Bruce

 

Table A

CLIENT GROUPAMOUNT
US00110
NL00110
NL00120

 

Table B

CLIENT GROUPCLIENTPARTICIPATION
US001TRUMP100%
NL001RUTTE50%
NL001WILDERS40%
NL001TRUMP10%

 

New table

CLIENT GROUPAMOUNTCLIENTPARTICIPATION
US00110TRUMP100%
NL00110RUTTE50%
NL00110WILDERS40%
NL00110TRUMP10%
NL00120RUTTE50%
NL00120WILDERS40%
NL00120TRUMP10%
  • Hi Anonymous ,

     

    Because Table B is a calculated table, and it won't be displayed in Query Editor, so you might not use the Merge feature to combine the two tables into one.

     

    As a workaround, you can create relationship between the two tables on field [CLIENT GROUP], then put all the desired fields into the same table visual.

     

    Or you may include the Table A in the formula which created the calculated Table B.

     

    Best Regards,

    Amy

     

    Community Support Team _ Amy

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

2 Replies

  • v-xicai's avatar
    v-xicai
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    Because Table B is a calculated table, and it won't be displayed in Query Editor, so you might not use the Merge feature to combine the two tables into one.

     

    As a workaround, you can create relationship between the two tables on field [CLIENT GROUP], then put all the desired fields into the same table visual.

     

    Or you may include the Table A in the formula which created the calculated Table B.

     

    Best Regards,

    Amy

     

    Community Support Team _ Amy

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

  • mwegener's avatar
    mwegener
    Icon for Most Valuable Professional rankMost Valuable Professional

    Hi Anonymous,

     

    please use Power Query for these kinds of transformations. 

     

    If I answered your question, please mark my post as solution, this will also help others.

    Please give Kudos for support.