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.
SOLVED

Data Time Difference Error - Formula Error : "[Null]" is not a valid Date or Time

bridrod
6 - Meteoroid

Hi,

 

I am doing a simple date calculation, but the Null cells in "closed date" field is breaking it. I tried replacing it with a specific date, use datetimenow(),  or skip it, but it's not working.

 

Could you help me with samples of how to fix or improve my test using formula as a solution? if there are multiple solutions, I would love to learn them. Thanks

Rod

4 REPLIES 4
AGilbert
11 - Bolide

Hi Rod, 

 

The null values in the Closed Date column are string values. Therefore, the isnull() function was not correctly identifying them. I changed your function to match if [Closed Date] = "[Null]". See attached. 

Qiu
21 - Polaris
21 - Polaris

@bridrod 

You data is not Null, rather it is having the value of "[Null]".

0408-bridrod.png

ShankerV
17 - Castor

Hi @bridrod 

 

Please use the below formula.

 

IF [Closed Date] = "[Null]"
THEN DateTimeNow()
ELSE [Closed Date]
ENDIF

 

Screenshot 2024-04-08 093711.png

Many thanks

Shanker V

 

bridrod
6 - Meteoroid

Oh wow! I would never have guessed! Thanks all! 😊

Labels
Top Solution Authors