Alteryx Designer Desktop Discussions

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

Change data structure

beatrizmguerreiro
8 - Asteroid

Hello, 

 

I have a set of data that represent the same information, but have different data structures. 

Rate
16,00', '%'
'16.00', '%'
0.00'
 
16.00%
'16.000', '%'

 

How can I convert this column into the following structure?

0,16
0,16
0
null
0,16
0,16

 

 

Thank you very much, in advance

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @beatrizmguerreiro,

 

In order to achieve this you need to use regex. As I am not a master of it I am using a specific tool called regex and I am using below expresion:

 

\d+.\d+

 

I am searching for a string that contains one or more digits dot represent any character and once more I am looking for one or more digits.

 

This is my workflow:

 

Emil_Kos_0-1609749026516.png

 

This is the final output:

 

Emil_Kos_1-1609749036559.png

 

Please mark my post as a solution if this was helpful!

 

 

Qiu
21 - Polaris
21 - Polaris

@beatrizmguerreiro 
@Emil_Kos gives excellent idea for this one.

Just  I noticed that you are using comma rather than period for numbers. so made a bit modificaiton.

0104-beatrizmguerreiro.PNG

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels