Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
Top Solution Authors