Alteryx Designer Desktop Discussions

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

Parsing all data before a number

AdientTP
5 - Atom

Hi all,

 

I receive a file and it contains a column called "Allocated Total".  This column has both the amount and currency in the same field.  I would like to separate the currency identifier from the amount into two separate columns and then change some of the currency codes so that i can use for exchange rates.  

 

Allocated total
$66,002.02
€28,587.03
₹920,889.00
MXN223,213.14
LSL66,764.78
MKD133,323.00
PLN9,175.93
£1,692.00
CZK50,747.60
€1,794.62
RON8,173.44

 

â.¹ is INR (Indian Rupee)

â,¬ is EUR

£ is GBP

 

I am relatively new to Alteryx but am preparing for the core qualification so the regex tool was a tool too far. 🙂

 

Any help much appreciated.

 

Keep up the good work.

 

Martin

4 REPLIES 4
afv2688
16 - Nebula
16 - Nebula

Hello @AdientTP ,

 

how about this?

 

Untitled.png

 

Regards

Emil_Kos
17 - Castor
17 - Castor

Hi @AdientTP,

 

I needed to use two finds and replace tool as the regex formula that I have used didn't work for ¹

 

Thie is the workflow:

Emil_Kos_0-1617005381865.png

Output:

 

Emil_Kos_1-1617005398239.png

The regex will remove all the data from before the first number

 

I stole it from @MarqueeCrew I hope he will don't mind. 

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Stripping-out-Text-before-a-number-kee...

 

Qiu
20 - Arcturus
20 - Arcturus

@AdientTP 
Hope this works for you

Capture8.PNG

MarqueeCrew
20 - Arcturus
20 - Arcturus

No worries @Emil_Kos !

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels