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

Parse Fields

ashleyinman
8 - Asteroid

I'm looking to parse out the original field to look like the new field. 

 

Remove the R from each and if there is a . remove that as well so I only see the numbers for example 50204-10763

 

Original FieldNEW FIELD
R50204-1073350204-10733
R50204-10733.250204-10733
R50204-1076350204-10763
R50204-10775.250204-10775
5 REPLIES 5
Thableaus
17 - Castor
17 - Castor

Hi @ashleyinman 

 

There's a lot of ways to do this.

 

One of them is this:

 

Right([Original Field], Length([Original Field]) - 1)

 

It will remove the first letter (R). 

 

Cheers,

Thableaus
17 - Castor
17 - Castor

@ashleyinman 

 

Another one:

 

Replace([NEW FIELD], "R", "")

 

Removes any R occurence in your Original Field.


Cheers,

ashleyinman
8 - Asteroid

Awesome thanks! How would you remove the . ? 

 

It might not always have only 1 number like .2 it might be .24

Thableaus
17 - Castor
17 - Castor

@ashleyinman 

 

EDIT:

 

Now I see you want to remove everything after the dot (.)

 

LEFT([Original Field], FindString([Original Field], "."))

 

Cheers,

cmcclellan
13 - Pulsar

I would create a formula that does this:

 

left(
replace([Field1],"R",""),
FindString([Field1], ".")-1)

 

Basically it removed the R then find the first period/dot and only takes what is on the left of that.

Labels