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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Merge Queries duplicate data

I have two tables Orders and Returned, I want to merge the two tables but once I merge the data will be duplicated. I have tried aggregating after merging but it will only display the returned orders, I need to have the full data set without getting duplicated. The tables are as follows;

Orders

Order IDOrder DateShip DateShip ModeCustomer IDCustomer Name
CA-2012-1248917/31/20127/31/2012Same DayRH-19495Rick Hansen
IN-2013-778782/5/20132/7/2013Second ClassJR-16210Justin Ritter
IN-2013-7124910/17/201310/18/2013First ClassCR-12730Craig Reiter
ES-2013-15793421/28/20131/30/2013First ClassKM-16375Katherine Murray
SG-2013-432011/5/201311/6/2013Same DayRH-9495Rick Hansen
IN-2013-423606/28/20137/1/2013Second ClassJM-15655Jim Mitchum
IN-2011-8182611/7/201111/9/2011First ClassTS-21340Toby Swindell
IN-2012-863694/14/20124/18/2012Standard ClassMB-18085Mick Brown
CA-2014-13590910/14/201410/21/2014Standard ClassJW-15220Jane Waco
CA-2012-1166381/28/20121/31/2012Second ClassJH-15985Joseph Holt


Returned

ReturnedOrder IDMarket
YesMX-2013-168137LATAM
YesUS-2011-165316LATAM
YesES-2013-1525878EU
YesCA-2013-118311United States
YesES-2011-1276768EU
YesMX-2013-131247LATAM
YesID-2011-20975APAC
YesIN-2014-58460APAC
YesES-2011-3028321EU
YesMX-2014-148285LATAM
YesIN-2014-54708APAC
YesID-2011-20989APAC
YesES-2013-3323529EU



2 REPLIES 2
jthomson
Solution Sage
Solution Sage

Are you sure you're merging and not appending, this seems a trivial merge on the order id

@Anonymous , At a very high-level look of the data, I do not think there are matching no for me to test.

Please refer if this can help :https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.