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.
解決済み

Add a delimiter twice

Farriyajawed
メテオール

Hello, 

 

I have a number 127000000 and I need to change it to 1270-00-000. 

 

I am using this formula but it is not getting the complete statement: 

Left(ToString([Code]), 4)+"-"+Right(ToString([Code]), 2) 

 

2件の返信2
apathetichell
アルクトゥルス
Left(ToString([Code]), 4)+"-"+Right(ToString([Code]), 2) 

 

you could do this via regex_replace with regex_replace([field1],"^(.{4})(.{2})(.{3})","$1-$2-$3") 

Prometheus
クエーサー

@Farriyajawed Try this: Left(ToString([Code]), 4)+"-"+Substring([Code],4,2)+'-'+Right(ToString([Code]), 3) 

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