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:

Account IDName Of AccountSales
1Apple$500
2Google$0
3Microsoft$200

<tbody>
</tbody>

Account IDSales Person Name
1Jim
1Jane
2John
3James
3Janet
3Joe

<tbody>
</tbody>

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:

Row Labels
Apple
James
Jane
Janet
Jim
Joe
John
Google
James​
Jane​
Janet​
Jim​
Joe​
John​
Microsoft
James
Jane
Janet
Jim
Joe
John
Grand Total

<tbody>
</tbody>

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

Thank you,
Eli
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,216,068
Messages
6,128,595
Members
449,460
Latest member
jgharbawi

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