In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi Field Rounding of numbers in a string format

Mario36
8 - Asteroid

On the below data, columns 1991 and 1992 are V_WString type and Decimal Places is Int32, I am looking to add a MultiField Tool to round the columns based on the Decimal Places column. However I get the rounding which is not as expected. Also, please note that any null or blank columns in 1991 and 1992 should return null instead of 0.

Mario36_0-1760959640042.png

Mario36_1-1760959834665.png

 

 

4 REPLIES 4
alexnajm
19 - Altair
19 - Altair

The second part of the rounding is not the number of decimal places, you should type 0.01 for your Round function: https://help.alteryx.com/current/en/designer/functions/math-functions.html#id605331

dreldrel
9 - Comet

Yes, @alexnajm  is correct. Alteryx uses a different method to configure decimals. Another way to define it in the Select tool is by using the format [Length for Integer].[Decimal]. For example, 19.2 means you will have 19 digits for the integer part and 2 digits for the decimal part.

Mario36
8 - Asteroid

@alexnajm  and @dreldrel 
I realized that and it worked, however if I have numbers in int32 type, example: 2,4,5 etc. for 2 decimals, I want the number to display 2.00,4.00,5.00 instead of just 2,4,5

alexnajm
19 - Altair
19 - Altair

Then you'll have to do that in your Excel, or you can set the data to a string and use a ToString() function to set your number of decimals

Labels
Top Solution Authors