Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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