Alteryx Designer Desktop Discussions

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

Filter not working for me

Karl_Spratt
8 - Asteroid

Hi Community,

Need some help please.

I'm trying to filter out from my data a range of Statuses I've tried, the Does Not Equal filter and Does Not Contain   in my WF (see attached) but neither is removing all the data I want to exclude, can someone please explain what I'm doing wrong here?

 

Attaching a sample of the completed data 

I want to exclude the [flow_status_code] with these values
"CLOSED"
"CANCELLED"
"OFFER_EXPIRED"
"ENTERED"
"DRAFT"

 

TIA,

Karl. 

 

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

I think you just want to replace your ORs with ANDs.

 

If you think about it, something like,

[dice_roll] != 5 OR
[dice_roll] != 6

will always be true, because when the roll is 5 you get False or True = True and when the roll is 6 you get True or False = True. Any other number is True or True = True.

Basically think about how these booleans get evaluated for you different data entries.

messi007
15 - Aurora
15 - Aurora

@Karl_Spratt,

 

Please see below:

 

messi007_0-1640080543514.png

 

Attached the workflow,

Regards

PhilipMannering
16 - Nebula
16 - Nebula

A nice shortcut for these filters would look something like this,

[flow_status_code] not in('CLOSED', 'CANCELLED', 'OFFER_EXPIRED', 'ENTERED', 'DRAFT')

I find this easier to understand too.

Karl_Spratt
8 - Asteroid

Thank you all, the solutions worked.

Really appreciate all the help here.

Regards,

Karl. 

Labels