Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Count combination of two words in comma separated column

StephenJPSheehan
7 - Meteor

Hello,

 

I am looking to try and count the combinations of two countries, separated by commas, in order to form a matrix. The data I am looking at is based on hurricane landfall per country.

 

Please see the attached spreadsheet which has an extract of the original data and the desired output.

 

I've tried a few different ways with the Transpose/Summarize functions but haven't quite cracked it! Any help would be greatly appreciated.

 

Thanks,


Stephen

4 REPLIES 4
Felipe_Ribeir0
16 - Nebula

Hi @StephenJPSheehan 

 

One way of doing this (cool problem by the way):

 

Felipe_Ribeir0_0-1667233951655.png

 

 

Felipe_Ribeir0
16 - Nebula

Hi @StephenJPSheehan 

 

It worked?

 

If yes, please accept it as a solution :)

 

Thanks!

KrishnaChithrathil
11 - Bolide

@Felipe_Ribeir0 

had to refer your code just to understand the scenario. 😄

StephenJPSheehan
7 - Meteor

@Felipe_Ribeir0 - your solution did work, thank you for your help!

Labels