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
16 - Nebula
16 - Nebula

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

binuacs
20 - Arcturus

@jkibazo 

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

alexnajm
16 - Nebula
16 - Nebula

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