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

Replace BLANKS with 0

Sarath27
8 - Asteroid

Hi All,

 

Column Name - Count

Data Type - Int32

 

I want to replace BLANKS with '0'.

 

Please assist. Thanks

9 REPLIES 9
niklas_greilinger
11 - Bolide

Hello @Sarath27 ,

have you tried using the Data Cleansing Tool? This tool provides the option to replace Blanks with 0.
Data_cleansing.png

binuacs
21 - Polaris

@Sarath27 The int datatype cannot hold the blank values, if there is no data it can hold the NULL values. if you want to replace the NULL with 0 you can use the imputation tool

image.png

Sarath27
8 - Asteroid

But in my case, its not null. Its only BLANKS. How can I change BLANKS to zero.

binuacs
21 - Polaris

@Sarath27 Can you check the datatype of that field? also, try the below formula

toNumber(Trim([Field]))

Sarath27
8 - Asteroid

@Niklas I tried, but it didnt work.

Sarath27
8 - Asteroid

@binuacs Pls refer this screenshot fort this issue and kindly assist me in this.

 

binuacs
21 - Polaris

@Sarath27 Seems that no records are coming through from your filter tools, Can you check the condition again and make sure that the records are satisfying the condition

Sarath27
8 - Asteroid

Yes. For now there are no records satisfying the condition.

 

But for this case, zero records.

binuacs
21 - Polaris

@Sarath27 If there are no records you cannot apply any formula. If the Data Type is an integer then a default 0 or NULL will be assigned to the field value, int will never allow blank values to that field, it will through an error.

Labels
Top Solution Authors