First, I transposed the data grouping by UserID and Count, I then joined the stream to itself on these two fields to create the first and second merchant on the same row. I then filtered where these two values were the same. I then gave each row a recordID:

I then took a stream and transposed again, grouping by RecordID, UserID, Count and Name (Merchant Number), and created a title field to use in the crosstab. I then sorted the data by the grouped fields and alphabetically by the Value field, which is the name of the merchant. I then cross-tabbed the data grouping by RecordID, UserID and Count, with the new title "Check" used as the header, and the value being a concatenated value string of both merchant names. This would mean they would be in the same order for each direction, so I can now highlight the records where merchant 1 and merchant 2 are the same combination the other way around:

I then joined this stream back to the original stream on recordID, dropping all fields from this stream. This simply highlights the duplicated but reversed combinations.
I then simply sorted accordingly and dropped the additional fields.


