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.

How to manage column with no values

lumjingbki
8 - Asteroid

 

I have 2 columns one is int and the other is string data type. please find attached. I want to assign a value to these when it is null or empty. can someone help how to achieve this

7 REPLIES 7
alexnajm
19 - Altair
19 - Altair

What value do you want to assign? Do you have an expected output?

lumjingbki
8 - Asteroid

@alexnajm if [Date] is blank then 20240101 else [Date]  if [status] is blank then "Status is blank" else [status]

lumjingbki
8 - Asteroid
@alexnajm if [Date] is blank then 20240101 else [Date]  if [status] is blank then "Status is blank" else [status]
cjaneczko
13 - Pulsar

All you need is a formula tool after that.

 

Date

 

if isnull([Date]) then tonumber(datetimeformat(DateTimeparse('20240101','%Y%m%d'),'%Y%m%d')) else [Date] endif

 

 

Status

 

if IsNull([Status]) then 'Status is blank' else [Status] endif

 

 

 image.png

lumjingbki
8 - Asteroid

@cjaneczko am not getting the required results even after using the given formulas. Are you providing having any blank rows in the input tool. 

cjaneczko
13 - Pulsar

Yes, the text input data matches your screen cap with date as Int 64 and Status as VString. Can you provide sample data?

cjaneczko
13 - Pulsar

Find attached the sample workflow. Also a screen cap of the input and output.

 

image.pngimage.pngimage.png

Labels
Top Solution Authors