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

Contains formula for integers

Inactive User
Not applicable

Hi,

 

I have to search for a particular number(6038) in the full number ( eg 3424326038433). In SQL i can use like function to solve this, not sure if there is something similar in alteryx.

 

For example 

 

Value

1000
10006038
6038
53443603832
3436038

 

I am using the following query but alteryx for some reason isn't giving the correct answer

 

keep?= if FindString("6038", [Value]) then 1 else 0 endif 

Output ->

 

Value Keep?
1000 1
10006038 1
6038 0
53443603832 1
3436038 1

 

Thanks!

 

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus
Please try:

Contains(ToString([Numeric Field]),"6038")

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors