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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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