Forum Discussion

Manohar_MS's avatar
Manohar_MS
Frequent Visitor
3 years ago
Solved

Help Needed on Joining two tables into one table

Hi All,

 

I have 2 tables.

 

Table A: Current Month data with selected countries net sales.

Table B: Previous Months Sales and it have all countries net sales information.

 

I need to bring only table A countries related data from Table B.

 

 

The final view of Table A need to acheive like above.

 

Thanks.

Manohar

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Manohar_MS 

    You can create a new calculated table 

    Table =
    VAR a =
        SUMMARIZE (
            FILTER ( 'Table B', [Country] IN VALUES ( 'Table A'[Country] ) ),
            [ID],
            [Country],
            [NS],
            [Date]
        )
    RETURN
        UNION ( 'Table A', a )
    

    Output

    Best Regards!

    Yolo Zhu

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

     

8 Replies