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

AND conditions for custom filter

nithyas
7 - Meteor

Hi all,

I have a requirement to combine data from two tables. In the current ETL tool, I could write a SQL. But in Alteryx, we chose to store the data in the .yxdb resulting which I cannot re-use the same query.

So, I am trying to build a workflow that uses the same SQL combining two .yxdb files. The conditions to filter out somehow doesn't seem to work.

SQL : TableA.<Field1> = 'XYZ' AND TableA<Field2> = 'ABC' and TableB<Field1> != null.

Tried to use the custom filter -

[Field1] = 'XYZ' AND [Field2] = 'ABC' and [Field1] != null().

 

When I use a single condition, I see the records, but not when I use the AND clause. C

 

Please assist.

 

Thanks!

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus

Hi @nithyas,

 

You are close.

 

[Field1] = 'XYZ' AND [Field2] = 'ABC' and !IsNull([Field1])

That should do it.

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
nithyas
7 - Meteor

Thanks Mark! That helped.

Labels
Top Solution Authors