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.

IFerror

igarcia7
6 - Meteoroid

How can I create this formula in alteryx?

=IFERROR(IF(M2<1,"NA", IF(N2<1,"NA",DATEDIF(M2,N2,"D"))),"DateDifError")

3 REPLIES 3
EKasminsky
8 - Asteroid

Do you have sample data behind using this? I'm curious to see what exactly this formula is trying to do and why you want to use IFERROR.

igarcia7
6 - Meteoroid

See the columns highlighted

binuacs
21 - Polaris

@igarcia7 

 

IF ISNULL([M2]) OR [M2] < 1 THEN "NA"
ELSEIF ISNULL([N2]) OR [N2] < 1 THEN "NA"
ELSE DateTimeDiff([N2], [M2], "days")
ENDIF

 

Labels
Top Solution Authors