Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

How to get a column from table2 to table1 ?

Hi All,   i took below data into power bi and it has come many to many relationships on unique id or ch3 status.   when i tried to taking the column from 2017 table to 2018 to compare any change ...
  • v-yulgu-msft's avatar
    v-yulgu-msft
    7 years ago

    Hi Anonymous ,

     

    In both 2017 and 2018 tables, for each RCP ACCOUNT NO, there existing multiple records which share the same CH3 STATUS value, right? 

     

    If so, you could create a bridge table which lists all available unique Account.

    Dim account =
    UNION (
        VALUES ( '2017 data'[Account] ),
        EXCEPT ( VALUES ( '2018 data'[Account] ), VALUES ( '2017 data'[Account] ) )
    )

     

    Create a one to many relationship from Dim account table to 2017 and 2018 data table based on RCP ACCOUONT NO.

     

    Add relative fields into table visual, you could rename each field being displayed in column header.

    Best regards,

    Yuliana Gu