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
Anonymous
Not applicable

Merged table (duplicates)

Hello Community: 

 

The purpose of trying to merge tables in my case is because I need the Promotion Code column (yellow) to be available to me in another table.   It currently resides in the Orders table.....but I need to have it also be in my Shipped table.  

 

I created a reference table, deleted all other columns, and just kept the ones below.    My intention was to merge this with the Shipped table.    

 

No matter what I try, I cannot get the correct amount of rows when the tables are merged.    I just simply want the same number of rows...but just really want to add these columns to Promotion Code column to my shipped table.    

 

Help please!  🙂   

 

dupes.png

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , hope you created a list or table. If list, converted to a table. Deleted duplicate and added index and merged

https://www.youtube.com/watch?v=Zlu99RUtMRY

Anonymous
Not applicable

@amitchandak @TomMartens @parry2k 

 

Thanks everyone.   Amit that video was helpful but the only issue is that the new query that is created is refernced back to the source file.      My issue is like this:    I have two tables.    A very simplistic view of them is below.   The "Promotion Code" field exists on my Orders table, but it does not exist on my Shipments table.    I need it to.   

 

Table 1  (Orders)                           Table 2  (Shipments)

Order ID                                         Order ID

Promotion Code                                 XXXX

@Anonymous , If one order id has only one promo code. I would have that dimension and use. Or I can populate it back shipments. The way is to merge it with shipments in power query. There is a Dax way. But prefer a power query. 

 

If one order id has more than one promo code, how you want to use it?

TomMartens
Super User
Super User

Hey @Anonymous ,

 

it's difficult to provide some guidance or tips, as it's not totally clear (at least to me) what's going on. Please provide some more information, do you have more rows after the merge, is this true for each row in the shipped table, ... Things like that.

 

This article explains all the different merge operations:
https://radacad.com/choose-the-right-merge-join-type-in-power-bi

 

Hopefully, this provides some new ideas on how to tackle your challenge.

 

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
parry2k
Super User
Super User

@Anonymous better to provide sample data and expected output, it is not very easy to follow what you are trying to do and what is not working.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.

Top Solution Authors