Using PowerPivot to Merge Two Tables

eliwaite

New Member
Joined
Feb 24, 2015
Messages
30
I have two tables, that I need to merge. One table includes the sales information per account, the second table includes the sales staff assigned to each account. Each table includes the account ID, which I am using to connect the two tables. Here is a brief example of the two tables:

[TABLE="width: 333"]
<tbody>[TR]
[TD]Account ID[/TD]
[TD]Name Of Account[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Apple[/TD]
[TD]$500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Google[/TD]
[TD]$0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Microsoft[/TD]
[TD]$200[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 271"]
<tbody>[TR]
[TD]Account ID[/TD]
[TD]Sales Person Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jim[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]James[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Janet[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Joe[/TD]
[/TR]
</tbody>[/TABLE]

What I would like the output to look like is:

Apple
Jim​
Jane​
Google
John​
Microsoft
James​
Janet​
Joe​

This way, I can sort by sales (or the other various metrics I have on the account level) and immediately know which sales people to praise or provide "additional guidance" to.

The output I can currently getting is:

[TABLE="width: 95"]
<tbody>[TR]
[TD]Row Labels[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[/TR]
[TR]
[TD="align: right"] James[/TD]
[/TR]
[TR]
[TD="align: right"] Jane[/TD]
[/TR]
[TR]
[TD="align: right"] Janet[/TD]
[/TR]
[TR]
[TD="align: right"] Jim[/TD]
[/TR]
[TR]
[TD="align: right"] Joe[/TD]
[/TR]
[TR]
[TD="align: right"] John[/TD]
[/TR]
[TR]
[TD]Google[/TD]
[/TR]
[TR]
[TD]
James​
[/TD]
[/TR]
[TR]
[TD]
Jane​
[/TD]
[/TR]
[TR]
[TD]
Janet​
[/TD]
[/TR]
[TR]
[TD]
Jim​
[/TD]
[/TR]
[TR]
[TD]
Joe​
[/TD]
[/TR]
[TR]
[TD]
John​
[/TD]
[/TR]
[TR]
[TD]Microsoft[/TD]
[/TR]
[TR]
[TD="align: right"] James[/TD]
[/TR]
[TR]
[TD="align: right"] Jane[/TD]
[/TR]
[TR]
[TD="align: right"] Janet[/TD]
[/TR]
[TR]
[TD="align: right"] Jim[/TD]
[/TR]
[TR]
[TD="align: right"] Joe[/TD]
[/TR]
[TR]
[TD="align: right"] John[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[/TR]
</tbody>[/TABLE]

Any help in getting me to my desired output would be greatly appreciated.

Thank you,
Eli
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I feel like... you gave a level of partial information which is confusing me. I guess I would expect to see some "Per Sales Person" data that I do not see?

Since you only have sales info at the Account level, there is much you can say about a Sales Person...
 
Upvote 0
There are no metrics associated with the sales people, only with the account. Basically I want to take my list of account and say, show me all the account that have over a million dollars in sales last quarter and the sales people associated with these accounts. Right now I am stuck making a list of accounts that fit my criteria and manually going through them one by one and adding the correct sales staff, which is very tedious.
 
Upvote 0
This is one of the weirder "things" in Power Pivot for me. And I mis-read your question a bit.

This is the old "Miami, TX" doesn't exist... and sometime excel seems to "try" to calculate that, and sometimes it is magically filtered out by the dax engine.

The most technical description here:
MDX and DAX topics: The Logic behind the Magic of DAX Cross Table Filtering

The italians here:
AutoExist and Normalization – SQLBI

Some of my own comments here:
http://tinylizard.com/power-pivot-hierarchical-data/

Summary... if both columns are from THE SAME TABLE, you will get what you want. So, if in your sales table you add a calc column for =RELATED(Accounts[AccountName]), then a pivot table w/ Sales Person Name and that new column... will filter as expected.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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