Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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