Given this table:
I'd like to derive this table:
...sort of like a mileage chart in a map book.
I'm trying to create a cross-table comparison of the words in each of the columns, against all of the other columns' words, to show how many matches there are between them.
For instance, comparing Column 1 against Column2 might yield 4 matches. The yellow, bold outlined cells are the matches.
And here's how I count them:
I'm thinking there might be an 'easy' way to accomplish this using Power Query. Is there?
(Oh...and by the way...the solution I'm looking for should not expect a static number of input columns: i.e., it should accommodate for more columns or less columns to be used in the input comparison set.)
Thanks.
No, there is no easy way, but it can be done. However, I get different results. My interpretation of your logic is: for each column combination, the number of occurrences of each common word in 1 column must be multiplied with the number of occurrences in the other column. These are my results:
And this is my query code: