I'm in the process of transferring over some logic from ACL and have been unable to get the below to translate into Alteryx. The goal is to identify and target our 5 digit string fields and translate them into various 6 digit fields based upon the first number. ex: identify 43210 and translate it to 253210
Below is the logic that was used in ACL. Any assistance or advice would be greatly appreciated. Thanks!
ALLTRIM("25" + SUBSTR(INCLUDE(XXX, "0123456789"),2,4)) IF Length(ALLTRIM(INCLUDE(XXX, "0123456789"))) =5 and SUBSTR(INCLUDE(XXX, "0123456789"),1,1) = "4"