Alteryx Designer Desktop Discussions

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

Parse Field from Right to Left

hellyars
13 - Pulsar

The values for three fields are trapped from Right to Left in FIELD_1.  How can I parse FIELD_1 across the fields ONE, TWO and THREE

 

 

FIELD_1ONETWOTHREE
82000 8200008200082000
20851 16551 -43002085116551-4300
-420000-4200
7 REPLIES 7
Emil_Kos
17 - Castor
17 - Castor

Hi @hellyars,

 

If the delimiter is space you can use simple text to columns.

 

If this was helpful please mark as an answer!

Emil_Kos
17 - Castor
17 - Castor

Hi @hellyars,


Thank you for marking my post as an answer!

 

Good Luck!

hellyars
13 - Pulsar

@Emil_Kos   Yeah, that's where I got stuck.  Notice that the Text to Columns tool does not place the values in the right order.  The best example to examine is the last row of -4200.  The -4200 should be assigned to THREE not ONE.  The Text to Columns tool places it in ONE. 

Emil_Kos
17 - Castor
17 - Castor

Hi @hellyars,

 

I missed that. It will work now:

 

Emil_Kos_0-1605048468526.png

 

 

 

hellyars
13 - Pulsar

@Emil_Kos Thank you.  This is more efficient/elegant than the multiple filter path I went down. 

Emil_Kos
17 - Castor
17 - Castor

Hi @hellyars,

 

Happy to help!

HomesickSurfer
12 - Quasar

Hi @hellyars 

 

Here's my efficient approach...

Capture.PNG

Labels