Alteryx Designer Desktop Discussions

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

Replacing a character with values from a loop

Shell
6 - Meteoroid

Gurus,

 

Not sure if I did the justification with the Subject. However, here is where I am stuck.

 

I have two columns; A and B (as below): Total (current) rows 20000+

 AB
1103XFSGS 
210XFSFRW1-3
320X4952DF 
410X48520K1-3

 

What I need to do is to split row number 2 and row 4 in to multiple of 3 rows, and replace the values with 1-3 because column B indicates that values of 'x'  should be from 1 to 3. The position of X is at constant 3 from left therefore this rule does not apply to row 1; also it does not apply on row 3 because it does not start with 10X.

 

Expected Result:

 A
2101FSFRW
2102FSFRW
2103FSFRW
410148520K
410248520K
410348520K

  

Sounds interesting?

 

/ps: Thanks in advance for your time.

2 REPLIES 2
morr-co
10 - Fireball

Hi @Shell - I believe this will yield the output you are looking for. Let me know if you have questions.

 

Screen Shot 2020-12-21 at 1.50.47 PM.png

Shell
6 - Meteoroid

wonderful! right on the dot!

Labels