In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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
19 - Altair
19 - Altair

@RDF25087 is this the output you are looking for?

alexnajm_0-1677513511417.png

 

alexnajm
19 - Altair
19 - Altair

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
19 - Altair
19 - Altair

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