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

Power Query - Merge Duplicating

Good morning,

I am getting a strange effect when I try to do a merge using a left outer join.

I have my facts table and I am trying to look up certain descriptives from a certain dimensions table using a left outer join in power query.

Before I do the merge, my numbers are ok, but after I do the merge, my numbers seem to be multiplied .

I am trying to merge on a text column with which is a unique account code in the dimensions table.

What could I be missing that produces this sort of multiplier effect. I dont want the figure in the facts table to be multiplied

Thank you for any assistance.

Regards

Herbz

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,

unlike the VLOOKUP in Excel, a left outer join in Power Query will return multiple values and therefore duplicate your fact table rows if there are multiple matches in the lookup table.

To prevent this, you can remove duplicates on the merge-column(s) of the lookup table before the join.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

1 REPLY 1
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,

unlike the VLOOKUP in Excel, a left outer join in Power Query will return multiple values and therefore duplicate your fact table rows if there are multiple matches in the lookup table.

To prevent this, you can remove duplicates on the merge-column(s) of the lookup table before the join.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.