Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Permutation / Combination of all rows in single field

lesliefenwick
6 - Meteoroid

Hello all,

 

I am attempting to create a unique field that has all possible alphanumeric combinations with a length of 8.

 

Input field

(0,1,2,3,4,5,6,7,8,9,A,B,C, etc.)

 

Output:

0AB23CD4

 

Any ideas? I'm thinking it may just be easier to generate the .csv in python but thought I'd give Alteryx a try first. I do realize the above example will give about 1.22 trillion records :D

 

The idea is to utilize these as codes for some potential direct mail marketing campaigns which would provide unique identifiers in the top right corner of the creative piece. When these people call in they provide the call center with this number allowing us to always have a perfect match across all systems.

 

Thanks for any help!

1 REPLY 1
jdunkerley79
ACE Emeritus
ACE Emeritus

I doubt this will be particularly quick at your scale but I suggest:

2019-02-04_22-41-58.jpg

- work out number of possible combinations

- generate a row for each with a number representing it

- generate a row for each letter of each row

- use a little maths to decode original row letter and letter index to a character

- Concatenate them back together

 

Reduce scale example (4 letters) attached - just up to 8 but no promises how long it will take!

Labels