Power Pivot simple one - what am I missing?

DrDebit

Board Regular
Joined
May 20, 2013
Messages
123
Office Version
  1. 365
Platform
  1. Windows
I have two tables, each with two columns:
Table 1: Employee ID Number and Salary
[TABLE="width: 157"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]ID Number
[/TD]
[TD]Salary[/TD]
[/TR]
[TR]
[TD] 41[/TD]
[TD="align: right"]36000[/TD]
[/TR]
[TR]
[TD] 64[/TD]
[TD="align: right"]96000[/TD]
[/TR]
[TR]
[TD] 153[/TD]
[TD="align: right"]40000[/TD]
[/TR]
[TR]
[TD] 228[/TD]
[TD="align: right"]4000[/TD]
[/TR]
[TR]
[TD] 252[/TD]
[TD="align: right"]72000[/TD]
[/TR]
[TR]
[TD] 283[/TD]
[TD="align: right"]76000[/TD]
[/TR]
[TR]
[TD] 327[/TD]
[TD="align: right"]4000[/TD]
[/TR]
[TR]
[TD] 342[/TD]
[TD="align: right"]14000[/TD]
[/TR]
[TR]
[TD] 411[/TD]
[TD="align: right"]30000[/TD]
[/TR]
[TR]
[TD] 415[/TD]
[TD="align: right"]59000[/TD]
[/TR]
[TR]
[TD] 459[/TD]
[TD="align: right"]31000[/TD]
[/TR]
[TR]
[TD] 479[/TD]
[TD="align: right"]12000[/TD]
[/TR]
[TR]
[TD] 499[/TD]
[TD="align: right"]40000[/TD]
[/TR]
[TR]
[TD] 531[/TD]
[TD="align: right"]65000[/TD]
[/TR]
[TR]
[TD] 552[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD] 570[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD] 665[/TD]
[TD="align: right"]20000[/TD]
[/TR]
[TR]
[TD] 676[/TD]
[TD="align: right"]42000[/TD]
[/TR]
[TR]
[TD] 728[/TD]
[TD="align: right"]76000[/TD]
[/TR]
[TR]
[TD] 752[/TD]
[TD="align: right"]40000[/TD]
[/TR]
[TR]
[TD] 790[/TD]
[TD="align: right"]76000[/TD]
[/TR]
[TR]
[TD] 830[/TD]
[TD="align: right"]11000[/TD]
[/TR]
[TR]
[TD] 872[/TD]
[TD="align: right"]74000[/TD]
[/TR]
[TR]
[TD] 885[/TD]
[TD="align: right"]7000[/TD]
[/TR]
[TR]
[TD] 917[/TD]
[TD="align: right"]22000[/TD]
[/TR]
[TR]
[TD] 992[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]1018000
[/TD]
[/TR]
</tbody>[/TABLE]
Table 2: Employee ID Number and Department
[TABLE="width: 381"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]iD Number[/TD]
[TD]Department[/TD]
[/TR]
[TR]
[TD] 992[/TD]
[TD]ADMISSIONS[/TD]
[/TR]
[TR]
[TD] 790[/TD]
[TD]SOE BIOENGINEERING[/TD]
[/TR]
[TR]
[TD] 415[/TD]
[TD]DIVISIONAL DEAN OF PHYSICAL SCIENCE[/TD]
[/TR]
[TR]
[TD] 228[/TD]
[TD]RSLVT RES HALLS FOOD PREPARATION[/TD]
[/TR]
[TR]
[TD] 570[/TD]
[TD]T-MRSHLL II APTS-FOOD PREP[/TD]
[/TR]
[TR]
[TD] 499[/TD]
[TD]ACE ADMINISTRATION & RELATIONS[/TD]
[/TR]
</tbody>[/TABLE]


I put them both into power pivot and create a relationship between the employee id numbers.
When I then make a pivot table from them (Department and Salary), I get all the wrong answers. What am I missing?

[TABLE="width: 364"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Department[/TD]
[TD]Sum of Salary[/TD]
[/TR]
[TR]
[TD]ACE ADMINISTRATION & RELATIONS[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
[TR]
[TD]ADMISSIONS[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
[TR]
[TD]DIVISIONAL DEAN OF PHYSICAL SCIENCE[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
[TR]
[TD]RSLVT RES HALLS FOOD PREPARATION[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
[TR]
[TD]SOE BIOENGINEERING[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
[TR]
[TD]T-MRSHLL II APTS-FOOD PREP[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]1018000[/TD]
[/TR]
</tbody>[/TABLE]

Thank you!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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