Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Formula tool if then statement giving 0 values in a column instead of string

ShantanuDagar
8 - Asteroid

Hey,

 

I am working on a dataset with 3 columns.

 

Based on the empty cells in 1st 2 columns, value in 3rd needs to be updated to available, not available.

 

If both column 1, column 2 empty, then column 3 should show available, and in all other cases not available.

 

The if then condition using formula tool is giving me 0 values in the column instead.

 

Using this...IF (IsEmpty([Column 1]) AND IsEmpty([Column 2])) THEN [column 3]= "Not Available" else [column 3] = "Available" endif

2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @ShantanuDagar 

 

Try this one

 

IF (IsEmpty([Column 1]) AND IsEmpty([Column 2])) THEN "Available" else "Not Available" endif

Felipe_Ribeir0_3-1671624694423.png

 

 

 

Sarreddy
9 - Comet
Labels