Hello!
I have a database of items which users have selected, and I would like to create a table which summarises the relationships between each item (i.e. a table which shows how many users have selected both items (items in rows and columns).
My input table is attached and looks like the below sshot, except for 'user_id', all columns reference an individual item (e.g. 536, etc):

My desired output is a table like the below which counts the number of users who have selected both items (add a column to the right which will provide this count):

Please can someone guide me on how to build this count function? I have got lost in the "transform" section, i'm sure the answer is there.
The overall purpose of this exercise is to provide the 'edges' for the network analysis tool (but I don't need help with that, yet
)
Thanks community!
Scott