pivot table from two datasources

peterpaul

New Member
Joined
Jun 2, 2021
Messages
7
Office Version
  1. 2019
Hello Excel-enthusiast,

I'm trying to use data, from two tables, in a pivot table. I made a relationship between de referece columns of table 1 & 2, but when I try to add the Weight column to the pivot table it sums the weights for every row? I just want to show the weight for every reference. Is this possible, if so , how?

Map3
ABCDEFGH
1Table1Table2
2IDReference ReferenceWeightRijlabelsSom van Weight
391159511591,509115951706,18
491175554865,0811706,18
591175525249,6041706,18
691159549117551706,18
7953821321706,18
8946512151706,18
995382159465121706,18
1011706,18
119538211706,18
1231706,18
1351706,18
14Eindtotaal1706,18
Blad1
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
In your tables Table1 is effectively the detail or fact table and Table2 is the Master Data. Pulling in a value from the Master just doesn't work using the Data Model.
To get what you seem to want pull both tables into Power Query as a connection only table and use Merge to create a single table that has ID, reference and weight.
The send it back to Excel either as a Table or a Pivot or to the Data model.
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,039
Members
452,542
Latest member
Bricklin

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