Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
yodha
Helper IV
Helper IV

Merging issues

i am trying to merge two tables using INNER JOIN but am getting duplicate rows.

This is my data " https://www.dropbox.com/s/2wk5tk455w5332p/Data.xlsx?dl=0 "

am trying to merge these two tables based on these columns:  UNIT,LOC,DATE,MATCH BD from Table 1

                                                                                              and UNIT,LOC,DATE,MATCH ID from Table 2

My final table after merging should be like this: UNIT, GROUP,LOC,PR,DATE,BD,BD Value, MATCH BD, ID, ID value.

Any help on this Please. Thanks in Advance.

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @yodha 

add merge columns in Table1 and Table2,

(merge columns UNIT,LOC,DATE,MATCH BD to one column)

merge queries for Table1 and Table2 based on" merged1" and "merged2" columns.

Capture25.JPGCapture25.JPG

 

select ID, ID value by expanding the "Table2" field

Capture26.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-juanli-msft 

Its not working, still am getting duplicate rows.

 

Thank you.

Hi @yodha 

Do you download my pbix to see each step?

Or could you share the pbix with me for further analysis?

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
yodha
Helper IV
Helper IV

Any help on this?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.