Alteryx Designer Desktop Discussions

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

Parse

[12] 903.199,95 [13] 04,00  [14] 36.127,88

 

How can I parse the above mentioned line to following result - 

 

Vighnesh_Kamath_7_0-1650359935169.png

 

3 REPLIES 3
mceleavey
17 - Castor
17 - Castor

Hi @Vighnesh_Kamath_7 ,

 

There are many ways of doing this in Alteryx. You can parse it all using Regex, you can do it in a formula tool, but I've broken it down step by step to make it easier to explain the process:

 

First, I used the Test to Columns tool to split this to rows on the opening square bracket remembering to check the "Skip Empty Columns" box, as this will remove those cells where the contents are only the removed delimiter:

mceleavey_1-1650362807625.png

This gives you the following:

 

mceleavey_2-1650362828084.png

I then used the same Text to Columns tool to split into two columns on the closing square bracket:

 

mceleavey_3-1650362877113.png

 

Which leaves us with:

 

mceleavey_4-1650362897835.png

 

I then used Regex (you can use a formula) as follows:

mceleavey_5-1650362934214.png

This simply removes any character not in the defined set, which would be any special character.

I then dropped the original column and renamed accordingly:

 

mceleavey_6-1650362983756.png

mceleavey_7-1650362998438.png

 

Workflow attached.

I hope this helps,

 

M.

 

 

 

 



Bulien

PhilipMannering
16 - Nebula
16 - Nebula

Here's an alternative way of getting to the answer,

PhilipMannering_0-1650363890929.png

 

PhilipMannering
16 - Nebula
16 - Nebula

I just realized you'll also need a data cleanse or to trim the characters.

 

Labels