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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors