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.
SOLVED

Find field in file that moves a position

luizbezerra
6 - Meteoroid
 

 

 

 I need to locate a certain value, but in several files and it changes position.
I have an initial content of the file that I can locate, but I can not use example: Substring ([Field_1], 10,4), do I have any solution for this case?
I've attached a text file with two lines where it contains the information I need to find.
Thank you

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

Try this formula:

If Contains([Field_1],'CENTRO DE CUSTO -') 
Then REGEX_Replace([Field_1], ".*CENTRO DE CUSTO - (.{0,4}).*", "$1")
Else ""  
EndIf
luizbezerra
6 - Meteoroid

jdunkerley79 ,

Thanks for the help, I'm adapting with Alteryx.
Taking advantage of the content, I need to do a control and insert record in the table, but before I need to check if it exists on the target. if it exists I need to delete and insert.

Labels
Top Solution Authors