Hi all,
I need to create increasing matrix like this:

Basically, the amounts on the intersections are the values attributed to the same category of month, but in different pairs.
I cant put my head around the data structure on the backend before I do crosstab, any advice is highly appreciated.