Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

concatenating two tables

Dear all,

 

 

I have two tables Overdue,Bounce.

 

Overdue:

Customer name,

Customer no,

DOB,

Accountno,

Monthyr,

Key

 

Bounce:

Accountno,

Monthyr,

Key,

EMI amount,

Par

 

 

Now i want to create a new table which should only has Accountno,Monthyr,Key from both these table

 

Newtable:

Accountno,

Monthyr,

Key

 

 

Regards,

Joshua.

  • Hi Anonymous,

     

    You can new a calculated table with below formula:

    NewTable =
    UNION (
        SELECTCOLUMNS (
            Overdue,
            "Accountno", Overdue[Accountno],
            "Monthyr", Overdue[Monthyr],
            "Key", Overdue[Key]
        ),
        SELECTCOLUMNS (
            Bounce,
            "Accountno", Bounce[Accountno],
            "Monthyr", Bounce[Monthyr],
            "Key", Bounce[Key]
        )
    )
    



    Best regards,

    Yuliana Gu

1 Reply

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi Anonymous,

     

    You can new a calculated table with below formula:

    NewTable =
    UNION (
        SELECTCOLUMNS (
            Overdue,
            "Accountno", Overdue[Accountno],
            "Monthyr", Overdue[Monthyr],
            "Key", Overdue[Key]
        ),
        SELECTCOLUMNS (
            Bounce,
            "Accountno", Bounce[Accountno],
            "Monthyr", Bounce[Monthyr],
            "Key", Bounce[Key]
        )
    )
    



    Best regards,

    Yuliana Gu