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

binu_acs
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