In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Move the matched cell values to a new column

edward_chow
5 - Atom

Hello,

 

I get an initial table as follow, the column `Marks` are stored in V_WString:

NameMarks
Mary10
JoeU
John42
CherryNA

 

And I would like to do the transformation and add a new column which moves the `U` and `NA` only

The expected result would be:

NameMarksMarks_remark
Mary10 
Joe U
John42 
Cherry NA

 

Any ideas on how to do that are highly appreciated.

 

Thank you,

5 REPLIES 5
ShankerV
17 - Castor

Hi @edward_chow 

 

One way of doing this...

 

ShankerV_0-1677578736257.png

 

ShankerV_0-1677578772142.png

 

Marks_Remark

IF contains([Marks],"U") OR contains([Marks],"NA")
THEN [Marks]
ELSE null()
ENDIF

 

Marks

IF contains([Marks],"U") OR contains([Marks],"NA")
THEN null()
ELSE [Marks]
ENDIF

 

Many thanks

Shanker V

edward_chow
5 - Atom

Thanks for your answer. But may I ask another question?

 

I may not elaborate very explicitly. What if I want to use the regular expression match functions?

 

This is because the data may not only contains `U`, `NA`, there is a chance that the users input other words.

 

So the ultimate goal is to mtach the words that are not numbers and move them in another column.

 

Thanks!

 

 

ShankerV
17 - Castor

Hi @edward_chow 

 

This is a valid ask, it can be accommodated.

 

 

ShankerV
17 - Castor

Hi @edward_chow 

 

One way of doing this.

 

ShankerV_1-1677638808651.png

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @edward_chow 

 

Another way to achieve with the help of formula tool.

 

ShankerV_0-1677639266454.png

Many thanks

Shanker V

Labels
Top Solution Authors