Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Generate All Row Combinations

data4accounting
7 - Meteor

Hi All- 

 

I don't know if I'm just over thinking this at this point but I'm struggling to find the solution. I have seen a lot on the topic of generating combinations of columns but I have not been able to find anything discussing generating all combination of rows. 

 

Please see attached photos of input and desired output. Thanks!!

1 REPLY 1
gawa
16 - Nebula
16 - Nebula

hi @data4accounting 

If you always have a fixed number of columns, you just have to put Select tools in parallel, and cross-join them one by one by Appendix Filed tool.

But, if the number of columns dynamically changes depending on input files, you have to use Iterative Macro like this. This WF involves some advanced technique like, Iterative Macro, Dynamic Rename...if you have time, please look into it to understand how it works.

 

image.png

 

Please note that cross-join operation is in general 'costly' operation, and that might generate uncountable records over millions. Please be careful.

Labels