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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Converting numbers that have commas and decimals

Steve07805
5 - Atom

Hi,


I have some data that uses decimals and commas. For example

 

191,08

5.138,55

8.666,01

19,33

17.154,10

 

The data uses a decimal to split the thousands. And a comma to signify the decimal place.


I found a formula to convert the comma to decimals but end up with:

 

17.154.10 which does not work.

Do you know a way to convert this data so it would be as follows:

191.08

5138.55

8666.01

19.33

17154.10

 

Thank you!

 

3 REPLIES 3
BenMoss
ACE Emeritus
ACE Emeritus

I would use a formula like...

replace(

 

replace(

 

replace([field],",","A")

 

,".",","),"A",".")

This should work...

So first of all we place commas with the letter A, we then replace full stops with a comma, and the finally the letter A with full stops.



BenMoss
ACE Emeritus
ACE Emeritus

I should add though, if you want the number to be treated like a number we don't even want the commas. So what I would actually do is something like

 

replace(


replace([field],".","")

 

,",",".")

 

In that we first replace full stops with nothing (i.e. removing what should be commas completely) and then replacing commas with a full stop.

Ben

Steve07805
5 - Atom

Yes that makes so much sense!

 

Thank you for the quick reply!

Labels
Top Solution Authors