Alteryx Designer Desktop Discussions

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

In database filter

shiwei1679
5 - Atom

I'm trying to use the in database filter to select the rows where a variable contains a string.

It seems the "like" operator only works if the I'm searching for the complete string, not part of the string.

Is there anbody who can help me on this? I'm new to Alteryx and any help would apprecaited. Thanks!

-Wei 

4 REPLIES 4
MarqueeCrew
20 - Arcturus
20 - Arcturus
Depends on your RDBMS, but for oracle you can replace all alphas with spaces and trim it. Test the length and if the length is 1 or more, then there is other stuff in it.

LENGTH(TRIM(TRANSLATE(string1, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ' ')))
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
shiwei1679
5 - Atom

Hi

 

LMB
6 - Meteoroid

write a custom filter and write:  my_var like 'ABC%'

shiwei1679
5 - Atom

Hi LMB, thanks a lot! It works. 

Best,

Wei

Labels