Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Not Null help

cireost
8 - Asteroid

Hi- I am simply trying filter for all [Effective Date] that are less than [Disposed] date.  However, if [Disposed] date is null I also want to keep on the true side.  So ending result should return Property B and C.  Can someone please help fix my expression?

 

Thanks.

3 REPLIES 3
darryl5280
10 - Fireball

IsNull([DISPOSED])
or
[Effective Date]<=(datetimeformat([DISPOSED],"%Y-%m"))+ "-01"

 

Is this the formula I think your looking for?

DiganP
Alteryx Alumni (Retired)

@cireost In the filter tool you can write multiple formulas. The formula you are looking for is:

[Effective Date]<=(datetimeformat([DISPOSED],"%Y-%m"))+ "-01" OR isnull([Disposed])

 

Digan
Alteryx
ponraj
13 - Pulsar

Here is the sample workflow. Just use filter tool twice. One to filter all the rows with null disposed date. Second is to filter all the records where effective date is less than disposed date.  Finally, use union tool to combine output from both the filter tool. 

 

Sample workflow.PNG

Labels