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.
SOLVED

Delete items/rows (not in 7 digit format)

PassION_es
10 - Fireball

Hello Alteryx Community,

 

Need help on how to delete rows that do not contain a value of 7 digits in a specific column.

 

Please see attached sample.

 

Thank you.

5 REPLIES 5
Rana_Kareem
9 - Comet

Hi @PassION_es ..

 

You can use this function in Filter Tool:

 

REGEX_Match([Column Name], "\d{7}")

 

 

PassION_es
10 - Fireball

HI @Rana_Kareem , It got a zero or -1 output. By the way, the column is a vstring column, not double or integers. I only want to filter those who have 7 numbers in the string column.

aatalai
14 - Magnetar

@PassION_es take a look at this workflow, using @Rana_Kareem logic but in a filter tool

Rana_Kareem
9 - Comet

@PassION_esDid you write the function in Filter Tool?

 

@aatalaiI've also mentioned to use Filter Tool !!

PassION_es
10 - Fireball

thanks @Rana_Kareem and @aatalai .  Yes, I used the filter tool and it works.

Labels