ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Replacing a single character in alteryx

jkibazo
メテオロイド

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件の返信5
alexnajm
19 - Altair
19 - Altair

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

binu_acs
ポラリス

@jkibazo 

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

alexnajm
19 - Altair
19 - Altair

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

rzdodson
クエーサー

Another way to do it:

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

 

jkibazo
メテオロイド

Thank you so much. This works

ラベル
トップのソリューション投稿者