Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Finding patterns in a string and setting value in a field

Abhii2658
8 - Asteroid

I have the following data. 

 

In the Com column, wherever there is an "I" in the third place of the data the value is set to 1. 

EF"I"5 - becomes 1 

ComField Value 
AB010
CD010
FF120
DK130
IU890
PP111
ABI31
CDI41
EF151
GHI61
4 REPLIES 4
jrgo
14 - Magnetar
IF REGEX_MATCH([Com], '^..I.*$')
THEN 1
ELSE 0
ENDIF
messi007
15 - Aurora
15 - Aurora

@Abhii2658,

 

Please see below 

 

messi007_0-1629210539682.png

 

Attached the workflow.

Hope this helps!

Regards

atcodedog05
22 - Nova
22 - Nova

Hi @Abhii2658 

 

I am bit confused what is the character ? I am taking it as i and 1 please let me know.

 

Workflow:

atcodedog05_0-1629210630524.png

 

Can you please clarify what is the character 😅

 

Hope this helps : )

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Abhii2658 

Cheers and have a nice day!

Labels