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

Alteryx Designer Desktop Discussions

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

How to use more than 1 expression in filter

CherylH
8 - Asteroid

Hi,

 

I can do a filter with one expression but have not been successful writing for 2 expressions.

 

 

Need to exclude 2 conditions, what is correct expression to write?

[Period] != "x" or [Period]!="DNU"

 

Thank you in advance,

Cheryl

 

3 REPLIES 3
MilindG
12 - Quasar

MilindG_0-1683227937129.png

MilindG_1-1683227971963.png

@CherylH  Both should work

 

Matt_Davis
7 - Meteor

@CherylH you have to say AND in order to exclude both

 

[Period]!="x"

AND

[Period]!="DNU"

 

If you use OR then everything will pass because "x"!="DNU" is true and vice versa "DNU"!="x" is true so all values would pass as true.

CherylH
8 - Asteroid

Thanks for the explaination, that makes sense.  I got it to work, been stumped on how to write filter for over a year and never took the time to ask.

 

Great Help!

Labels
Top Solution Authors