We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Replacing a single character in alteryx

jkibazo
6 - Meteoroid

Hello,

 

I am trying to clean out a dataset whereby I want to remove zeros (0) at the beginning of my account numbers and only remain with the remaining digits. My dataset can be seen below:

Account Numbers starting with zero.PNG 

 

For example if I have 02334566, the new column I want to create should have 2334566 for the new account number. How can I achieve this in alteryx?

5 REPLIES 5
alexnajm
18 - Pollux
18 - Pollux

ReplaceFirst([Account Number], "0" , "")

binuacs
21 - Polaris

@jkibazo 

ReplaceFirst([Account Number],”0”,””)

alexnajm
18 - Pollux
18 - Pollux

Or you could convert it into a number which would remove the zeroes automatically - not my suggestion but a possibility nonetheless.

rzdodson
12 - Quasar

Another way to do it:

Right([Account Number], Length([Account Number])-1)

 

jkibazo
6 - Meteoroid

Thank you so much. This works

Labels
Top Solution Authors