Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Comma Separators

evinothk
7 - Meteor

my currrent output field is 1610.66 but i want as 1,610.66 ... Need a comma for thousands.. how to get that?

3 REPLIES 3
sparksun
11 - Bolide

ToString function can do it.

333.jpg

alexnajm
18 - Pollux
18 - Pollux

@sparksun's solution works really well if you want the output to be forced to be a string - otherwise if you just want to view a comma briefly in the Results window then you can use "Show Numeric Separator" if you have a recent enough version of Alteryx.

 

Lastly, if you want the output to be numeric AND to still show the comma, that will have to be done in the platform itself. For example, you'd save the format in Excel and then "Preserve Formatting on Overwrite", specifying a range as well.

Comma Separators.PNG

Raj
16 - Nebula

ToString([Field],2,",")

will work 
this works for any number.

Labels
Top Solution Authors