ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Replace BLANKS with 0

Sarath27
Asteroide

Hi All,

 

Column Name - Count

Data Type - Int32

 

I want to replace BLANKS with '0'.

 

Please assist. Thanks

9 RESPUESTAS 9

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
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
Asteroide

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

binu_acs
Polaris

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

toNumber(Trim([Field]))

Sarath27
Asteroide

@Niklas I tried, but it didnt work.

Sarath27
Asteroide

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

 

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

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

 

But for this case, zero records.

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

Etiquetas
Autores con mayor cantidad de soluciones