Merge (LOJ) increasing total value column

egspen2

New Member
Joined
Apr 22, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I have a query with financial information (initially16,577 rows) including account name that I'm wanting to merge with a "mapping" query using account name as the common field so that the department from the mapping query is added as a column to my financial data query. When doing a left outer join, the "Expanded Mapping" step (immediately after the merge) is adding 2,440 rows and, in turn, changing (increasing) the total value column in my financial data. Am I doing the wrong type of join? Is there a way to filter out the rows added in the expanded mapping step?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
What I am thinking, in reading your post, is that your Mapping query with the Account Name and Department has Account Names listed more than once.

You have a couple of options:
Cleanest Route: Work on your Mapping Query to scale it down to only having one Department for each Account Name.
Get it done now/Inconsistent Route: In your current step that merges the 2 queries together, keep your Left Outer Join, but click to check "Use fuzzy matching to perform the merge", and then in the Fuzzy Matching Options section, enter the number 1 in the Maximum number of matches (optional) box.
 
Upvote 0
What I am thinking, in reading your post, is that your Mapping query with the Account Name and Department has Account Names listed more than once.

You have a couple of options:
Cleanest Route: Work on your Mapping Query to scale it down to only having one Department for each Account Name.
Get it done now/Inconsistent Route: In your current step that merges the 2 queries together, keep your Left Outer Join, but click to check "Use fuzzy matching to perform the merge", and then in the Fuzzy Matching Options section, enter the number 1 in the Maximum number of matches (optional) box.
Thank you! There were duplicates in my mapping query so I cleaned those up and that fixed it.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top