We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Currency Rounding Problem

MattR79
8 - Asteroid

I am trying to match some item dollar amount values however, one of them has several digits after the decimal point where the other only has two.  There does not seem to be an easy way to round up to the closest second decimal.  Any advice on how to do this?  Below is an example of what I am trying to do.

 

Value that needs to be roundedDesired Value post rounding
3400.22758423400.23
198543.016483198543.02
109.86832109.87
3 REPLIES 3
DataNath
17 - Castor
17 - Castor

Hey @MattR79, you can use the Round() function:

 

 

Round([Value that needs to be rounded],0.01)

 

Or switch the Data Type of your field to a FixedDecimal with size N.2 where N allows for the full size of your number including the leading numbers, decimal point & numbers afterwards:

 

DataNath_0-1682690421201.png

 

MattR79
8 - Asteroid

Wow, that was extremely easy, I feel a little silly now.  Thanks for the help.

DataNath
17 - Castor
17 - Castor

Not at all @MattR79, all part of the learning journey! Anytime!

Labels
Top Solution Authors