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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Merging in Power Query

Merge always gives me a headache. 

Situation is:  

I have a table of opportunities with an Opportunity ID.     I have another table, called Quotes, that contains the Opportunity ID as well...but also has the column I need in my Opportunity table, which is, the Order number from our ERP table.   

 

I thought by merging the tables, using the Opportunity ID  with a Left Outer join would give me all my Opportunities in my current table, but then bring in just the Order number from the SF quote table.     I essentially want to match the Opportunity ID from both tables, so that for those Opportunities that have been coverted, the Order number will show up in the new column.  

 

But in doing so I went from 9600 rows in my Opportunity table, to 23000.    Is it possibly a granularity issue?

1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

have you checked the rowcounts on both tables?     Is it not possible that a customer has more than one quote but then i suppose the opportunity id would be different?  If not check for duplications.  What are you joining on?  best to share some of the data.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Anonymous,

Any update for these? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

How about use relationship mapping two tables instead of directly merge these tables in the query editor?

For this scenario, you can extract two table id field values and use them to create a bridge table with unique keys to link two tables.

How to Join Many to Many with a Bridge Table in Power BI | Seer Interactive

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
vanessafvg
Super User
Super User

have you checked the rowcounts on both tables?     Is it not possible that a customer has more than one quote but then i suppose the opportunity id would be different?  If not check for duplications.  What are you joining on?  best to share some of the data.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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