I have a large matrix which has what parts make up an item:
To illustrate what I am trying to accomplish I will represent it with 4 items (A, B, C, D) and 6 parts (P101, P102, P103, P104, P105, P106)
The following shows which parts belong to each item
A B C D
P101 1 1 1
P102 1 1
P103 1 1
P104 1
P105 1 1
P106 1 1 1
What I am trying to end up with is how many parts are not in common with each item. Something like the following:
A B C D
A - 3 3 2
B 3 - 3 3
C 3 3 - 6
D 2 3 6 -
For example C&D share no parts - so there are 6 parts different from one another.
To illustrate what I am trying to accomplish I will represent it with 4 items (A, B, C, D) and 6 parts (P101, P102, P103, P104, P105, P106)
The following shows which parts belong to each item
A B C D
P101 1 1 1
P102 1 1
P103 1 1
P104 1
P105 1 1
P106 1 1 1
What I am trying to end up with is how many parts are not in common with each item. Something like the following:
A B C D
A - 3 3 2
B 3 - 3 3
C 3 3 - 6
D 2 3 6 -
For example C&D share no parts - so there are 6 parts different from one another.