Aggregate two tables onto one granulity

joslaz

Board Regular
Joined
May 24, 2018
Messages
76
Hello everybody,


I have two tables in the following format:

tblSkills:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]ID[/TD]
[TD]Function[/TD]
[TD]Assembly[/TD]
[TD]Drilling[/TD]
[TD]Polishing[/TD]
[TD]Package[/TD]
[/TR]
[TR]
[TD]Jeremy[/TD]
[TD]001[/TD]
[TD]Operator[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Rodger[/TD]
[TD]002[/TD]
[TD]Operator[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]


tblPlanning:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]ID[/TD]
[TD]State[/TD]
[/TR]
[TR]
[TD]01.01.2019[/TD]
[TD]001[/TD]
[TD]Assembly[/TD]
[/TR]
[TR]
[TD]01.01.2019[/TD]
[TD]001[/TD]
[TD]Drilling[/TD]
[/TR]
</tbody>[/TABLE]




It can be seen that the first table is partly a cross table.
The other table is a classic list.


Both can be linked using a calendar table and a master data list (name, ID).
Now I have to somehow connect the abilities with each other, in order to be able to carry out appropriate evaluations with the help of a pivot table.
Does anyone of you have any idea which structure would be best for this?


Best regards
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I assume you want to join these two tables into one so via PQ

tblSkills
- select first three columns and Unpivot Other Columns
- change Attribute to State

merge tblSkills and tblPlanning by ID and State
- Expand

create PivotTable from Merge-Table
 
Last edited:
Upvote 0
Thanks for the replies!

I dont want a Merge of both tables in one. I am looking for a data modell.
So, I think a need a reference table with unique values for ID, the skills and the dates.
The challange is to determine a referance table for the skills.
How would you manage that?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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