Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert number format

RDF25087
8 - Asteroid

Hi all -

 

I'm struggling to change a number from a continental format, e.g. 1.23,45 to a UK format e.g. 1,23.45. I'm sure this is fairly straight forward - but not for me!

 

Any help you could give would be greatly appreciated.

 

Thanks

RDF

4 REPLIES 4
alexnajm
18 - Pollux
18 - Pollux

@RDF25087 is this the output you are looking for?

alexnajm_0-1677513511417.png

 

alexnajm
18 - Pollux
18 - Pollux

Whether these are two separate numbers (1 and 23,45), this Formula should still work.

 

ToNumber(x, [bIgnoreErrors], [keepNulls], [decimalSeparator]): Converts a string (x), to a number. ToNumber accepts strings that can be interpreted as scientific notation double precision. By default, the period is used as the decimal separator.  Conversion Functions | Alteryx Help

RDF25087
8 - Asteroid

Thanks for the reply. Almost! It seems to have converted 5.407,50 to 5407.5. I might be able to work with that but is there a way to add the "," back in, so that it would be 5,407.50?

 

 

alexnajm
18 - Pollux
18 - Pollux

It's possible yes, but the value would have to be stored as a string to keep the comma separator. Is this the preference?

 

Otherwise if it should stay as a number, I would just use the Number Separator toggle in the Results window or format it on the output side (i.e. Excel, Tableau, etc.). 

alexnajm_0-1677516989846.png

 

Labels
Top Solution Authors