Alteryx Designer Desktop Discussions

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

Extract quantities from description column

eleee3
8 - Asteroid

Hi there,

 

I have a dataset which looks like this:

 

DescriptionQuantity
Lounge (Qty8) 
Picture Qty11 
Fridge Qty 6 
Mugs (Qty100) 
Room 205 
Room 206 
Hallway 0-12m 

 

I want Alteryx to extract unit quantities from the description column (but not other numbers) such that my final dataset looks like this:

 

DescriptionQuantity
Lounge (Qty8)8
Picture Qty1111
Fridge Qty 66
Mugs (Qty100)100
Room 205 
Room 206 
Hallway 0-12m 

 

Could someone please help me set this up?

 

Thanks in advance!

2 REPLIES 2
ShankerV
17 - Castor

Hi @eleee3 

 

One way of doing this with the help of Regex tool.

ShankerV_0-1677124656930.png

 

Many thanks

Shanker V

eleee3
8 - Asteroid

Thanks, @ShankerV! Always appreciate your help.

Labels