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 Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
RESUELTAS

Starts with formula help

binsell
Asteroide

Hi All - I know this is a simple formula but for some reason Alteryx is not picking it up! I have checked and my course code column is a string data type so not sure what I'm doing wrong. I have attached my data before and after so can see what I'm trying to achieve. I have a course code column and if the course code START WITH 'TT' I want to return 'NITE' and any others leave as blank. Thank you for your help in advance :) 

5 RESPUESTAS 5
alexnajm
19 - Altair
19 - Altair

IF StartsWith([Course Code], “TT”) THEN “NITE” ELSE Null() ENDIF

alexnajm
19 - Altair
19 - Altair

What part is not working on your end?

binsell
Asteroide

Thanks Alex, when I type the 'THEN' it doesn't pick this part of the formula up so anything after then is not working :( This is the formula I originally did but doesn't like it :( 

binsell
Asteroide

Ignore that, I have just deleted the formula tool and done it again and now likes it! Thank you so much 

alexnajm
19 - Altair
19 - Altair

Happy to help