Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Append one table onto another filtering by common ID using DAX

I have two tables; table 1 and 2 that contains the same columns. I would like to append table 2 onto table 1, but only when the parent ID in table two matches a parent ID in table 1. The case can be ...
  • v-yulgu-msft's avatar
    8 years ago

    Hi Anonymous,

     

    New a calculated table with DAX.

    Table3 =
    UNION (
        Table1,
        FILTER (
            Table2,
            LOOKUPVALUE ( Table1[Parent ID], Table1[Parent ID], Table2[Parent ID] )
                <> BLANK ()
        )
    )

     

    Best regards,

    Yuliana Gu