Alteryx Designer Desktop Discussions

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

Showing mulitple zero in Summarize tool

Srawat
8 - Asteroid

Hi,

 

I am using summarize tool to adding to transaction both are same value dr. and cr. and will be zero. however the zero result coming in mulitple zero. Please advise how can we reduce the zero with one digit.

 

 

Srawat_0-1665573203879.png

 

Thanks,

3 REPLIES 3
DataNath
17 - Castor

@Srawat will this value always be 0? Or can it be other values and you only want it to be '0' when the result is zero? If it's always going to be zero then you could just use a Select tool and make the field a byte:

 

Before:

 

DataNath_1-1665573530965.png

 

After:

 

DataNath_0-1665573519041.png

RogerS
Alteryx
Alteryx

Use a select tool after your output and change the type to fix decimal and adjust the size.  The size is the larges number of places before and including the  '.'  and decimal places.  The number after the  decimal represents total number of decimal places.  For example if your number is gong be no large than 999.9 with one decimal your size will be  5.1

 

 

gautiergodard
13 - Pulsar

Hi @Srawat 

What is the data type of this field? If it's a string, you could use the select tool and convert the data type to a double or a byte.

Alternatively, you could use a formula in a formula tool to perform the rounding:

 

round(tonumber([number]),1)

 

Labels