In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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
9 - Comet

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