Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

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

stephenslaughter
メテオロイド

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件の返信4
allwynthomas24
ボリード

Hey @stephenslaughter,

 

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

 

Thanks & Regards,

Allwyn Thomas

 

スポイラ
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
メテオロイド

Thanks, TonyA!

ラベル
トップのソリューション投稿者