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

Substring does not work in Filter using custom

SithDavid
5 - Atom

Using the Filter Tool 

Adding a custom Filter

Substring([PLAN1],1,2) = "SL"

 

But does not return any Trues

Example of the string in [PLAN1]

SL_BASECOAT

FB_1M2461RLB

 

 

What am I doing wrong?

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @SithDavid ,

 

To get information from the first 2 characters with this function, you need to use Substring([PLAN1],0,2)

You could also use a left([PLAN1],2) function and have the same result.

 

Let me know if that works for you.

 

Best,

Fernando V.

SithDavid
5 - Atom

Thank you.  That Worked

 

Labels
Top Solution Authors