Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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
17 - Castor
17 - Castor

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

binuacs
21 - Polaris

@jkibazo 

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

alexnajm
17 - Castor
17 - Castor

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