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.

Change string with different formats to numbers

BautistaC888
8 - Asteroid

Hello,
I need to change this strings with different formats to number type.

I attached an example.
Thank you.

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@BautistaC888 
I can see the different format meaning the dicimal point is either a period or a comma, so is the Thousand seperator.

So we can use a Regex to seperate them out then do some replace processing and joining them back.

0707-BautistaC888-A.PNG0707-BautistaC888-B.PNG

BautistaC888
8 - Asteroid

Thank you.
Could this work if i have multiple fields?

Qiu
21 - Polaris
21 - Polaris

@BautistaC888 
It will depend on how many columns.
if 2 or 3 then maybe it is better to apply this formula multiple times.

If more, then we can use the combination of Transpoe and Cross Tab then apply the formula.

Labels