We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to use LEFT with multiple condition

TB_Mylene
7 - Meteor

Hi All, I'm stuck on a formula using LEFT condition and needing some guidance. In excel I use this formula: =IF(LEN(X3)=6, LEFT(X3,3),LEFT(X3,4) and works great. I'm trying to convert this in Alteryx and I'm struggling. 

 

I have the formula below and I'm just getting NULL value. 

 

If the value = 6 then return the first 3 left if not, return the first 4 left. 

 

Any suggestion is much appreciated. Thanks.

 

 

2023-10-07_10-34-45.png

2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

You must end the entire expression with ENDIF!

TB_Mylene
7 - Meteor

@alexnajm  that's a big DUH for me!  😄  Thank you so much!

Labels
Top Solution Authors