Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!

Alteryx Designer Desktop Discussions

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

List of all combinations

olehr
8 - Asteroid

Hi,

 

I have an issue

Skjermbilde.PNG

 

What I would like to do is to create a list of all possible combinations, but I have no clue on where to begin. 

The list should look like the list below.

 

Skjermbilde2.PNG

 

All inputs are appreciated 

 

Thanks

Ole Henrik

5 REPLIES 5
BenMoss
ACE Emeritus
ACE Emeritus

I think the solution people will provide depnds on whether you want the solution to be dynamic or not.

 

A quick fix for this type of problem is to create a summerize stream for each field with that field specified as a group by clause.

 

You can then append those 5 streams together using the append fields tool which will give you your desired output.

 

Ben

jdunkerley79
ACE Emeritus
ACE Emeritus

As @BenMoss says there are various ways to do this.

 

My approach is to enumerate all the possible values and then join them back together.

2018-12-21_14-28-45.png

First count number of options for each field

Then product this to make total number of possible combinations

Using a generate rows you can create this set of scenarios and then join it all back together

olehr
8 - Asteroid

Thank you so much. That helped :)

polonius11
5 - Atom

This is great; thank you for sharing; adopted it for a flow I am working!

This is extremely helpful!

Labels
Top Solution Authors