Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Format number with currency & decimal to be part of a string

stephenslaughter
6 - Meteoroid

I am trying to figure out how to format a number (double) into currency and then add as part of a string.  Would this be a formula, regex, or is there an easy way to quickly convert a number to currency?

 

ProgramYearCostOutput
Aaaa2020500.5Aaaa (2020) $500.50
Bbbb2020600.6Bbbb (2020) $600.60
Aaaa20197000Aaaa (2019) $7,000.00
Aaaa201980Aaaa (2019) $80.00
Bbbb20199090.99Bbbb (2019) $9,090.99

 

4 REPLIES 4
allwynthomas24
11 - Bolide

Hey @stephenslaughter,

 

Please check the attached workflow and confirm whether it matches your current requirements.

 

Thanks & Regards,

Allwyn Thomas

 

Spoiler
allwynthomas24_0-1648060912060.png

 

allwynthomas24_1-1648060937981.png
TonyA
Alteryx Alumni (Retired)
TonyA
Alteryx Alumni (Retired)

Just looked through the other solutions and it looks like no one accounted for commas. That makes it a little trickier. I put the formatting in a macro to make this a little cleaner:

 

TonyA_0-1648064770794.png

 

stephenslaughter
6 - Meteoroid

Thanks, TonyA!

Labels
Top Solution Authors