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

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

binu_acs
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.

binu_acs
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

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

 

binu_acs
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.

binu_acs
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