Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How filter values which is in capital letter or include any number

Sshasnk
8 - Asteroid

I have a dataset and I have select the string which is in capital letter

Value
HUL1
sakish
HALBS
123

 

from the above, I only have to pick the third line. which is all in a small letter.

 

Output:

Value
sakish

 

 

7 REPLIES 7
Emil_Kos
17 - Castor
17 - Castor

Hi @Sshasnk,

 

The answer would be using regex. The first filter removes capital letters and second removes numbers. 

 

Emil_Kos_0-1602666523629.png

 

AngelosPachis
16 - Nebula

Hi @Sshasnk ,

 

You can do that with a filter tool using the following expression

 

REGEX_Match([Value], "\l+","icase=1")

 

Screenshot 2020-10-14 101103.jpg

Ben_H
11 - Bolide

Hi @AngelosPachis,

 

Just thought I'd point out that the formula you've used there is incorrect -

 

You have used REGEX_Match([Value], "\l+","icase=1")

 

You should only include the integer 1 or 0, not a string - for some reason putting any string at all there is treated as a 0 (i.e. Exact match) 1 would ignore case. It should read REGEX_Match([Value],"\l+",0)

 

Regards,

 

Ben

AngelosPachis
16 - Nebula

Hi @Ben_H ,

 

You are right, I missed changing that and I was lucky that it played in my favour. The expression should be REGEX_Match([Value], "\l+",0)

 

Thanks for raising that

grazitti_sapna
17 - Castor

Hi @Sshasnk , please refer to the screenshot below.

 

Filter- REGEX_Match([Value], "\l+","1")

grazitti_sapna_0-1602673645058.png

 

Thanks.

 

Sapna Gupta
RolandSchubert
16 - Nebula
16 - Nebula

Hi @Sshasnk ,

 

you could use a Filter tool with condition:

 

MD5_ASCII([Value]) != MD5_ASCII(Uppercase([Value]))

 

comparing the string with the uppercase version of the string (the MD5_ASCII function is needed, as "=" usually ignore upper-/lowercase).

 

Let me know if it works for you.

 

Best,

 

Roland

atcodedog05
22 - Nova
22 - Nova

Hi @Sshasnk 

 

Using this formula in filter tool should work.

REGEX_Match([Value], "\l+",0)

Output:

atcodedog05_0-1602690007671.png

Workflow:

atcodedog05_1-1602690020949.png

Hope this helps 🙂

 

Labels