Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter by AND/OR

knozawa
11 - Bolide

Hello,

 

I was testing filter tool using AND/OR.

 

This is the original input:

Input.png

 

Here are output using 4 different filters:

 

1) IsNull([Field1]) AND IsEmpty([Field1]) --> only take into account the first expression, 'IsNull([Field1])'

IsNull([Field1]) AND IsEmpty([Field1]).png

 

2) !IsNull([Field1]) AND !IsEmpty([Field1]) --> desired output.

!IsNull([Field1]) AND !IsEmpty([Field1]).png

 

3)IsNull([Field1]) OR IsEmpty([Field1]) --> desired output

IsNull([Field1]) OR IsEmpty([Field1]).png

 

4) !IsNull([Field1]) OR !IsEmpty([Field1]) --> take into account only the first expression '!IsNull([Field1])'

!IsNull([Field1]) OR !IsEmpty([Field1]).png

 

Does anyone know the reason why negative expression will flip the logic of AND/OR?

 

Sincerely,

Kazumi

2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@knozawa great question! Isempty will actually return true for empty and null cells. If you try isempty, your should have two true records.

 

Edit: here is the help info: https://help.alteryx.com/11.8/index.htm#Reference/Functions.htm?Highlight=Isempty

 

Screenshot_2018-01-31-18-12-22.png

knozawa
11 - Bolide

@patrick_digan,

 

Thank you for your answer! This is very helpful.

 

Sincerely,

Kazumi

Labels
Top Solution Authors