Hello. I have a filter and formula (below) and Alteryx is not identifying the null values, it returns data as if every record has a value in the EXT_TRADE_ACCT_NBR field, which is not the case. This field is formatted as V_string. Do you have advice? Thanks.
Simple filter:
IsNull([EXT_TRADE_ACCT_NBR ])
Simple formula:
IF IsNull([EXT_TRADE_ACCT_NBR ])
THEN [ID1 ]+ [ID2]
ELSE "ok"
ENDIF
Solved! Go to Solution.
If a field is null, it will display a grey "[Null]" in the results window. Another possibility is that the field is empty and that can be tested for using the isempty() function. Try adding that to your condition and see if that works.
( IsNull([EXT_TRADE_ACCT_NBR]) OR IsEmpty([EXT_TRADE_ACCT_NBR]) )
IsEmpty includes checking for null.
One addition that can cause false positives is white space so I suggest:
IsEmpty(TRIM([EXT_TRADE_ACCT_NBR]))
This will match Nulls, empty strings and white space
Genius! I knew it was something simple. The "Is empty" solved the problem. Thanks VERY much!
Thanks Ben! I didn't know that, so appreciate you sharing your expertise.
Thank you! I appreciate the advice.
Thanks for teaching me something @BenMoss and @jdunkerley79. My order of testing had always been null then empty. Never though to reverse it and discover that for myself.