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 Function does not work

ashissanpui
9 - Comet

Hi team,

 

I am trying to use AND formula which is similar to AND function present in MS Excel. Could you guide me how to use the same? I am in dire need.

 

Let me know your best approach to this.

 

Thank You,

Ashis Sanpui

3 REPLIES 3
CharlieS
17 - Castor
17 - Castor

In Alteryx expressions: the "AND" ("&&" also works) is an operator and not a formula. Think of it as a "+" for conditions.

 

 

In Excel: AND([A]=1,[B]=1)

 

In Alteryx: [A]=1 AND [B]=1

or ([A]=1 AND [B]=1) if the parenthesis help.

ashissanpui
9 - Comet

Thank you @CharlieS for the solution. It did work for me.

Arunkumar25
5 - Atom

Hi, I try to use the "AND" function in the filter. my requirement is to filter the date approval from yesterday to today.  this is a custom formal which I tried "[Date Approved] = DateTimeToday() AND [Date Approved]= ToDate(DateTimeAdd(DateTimeToday(), -1, "days"))".

 

the above formula doesn't work if tried separately today or yesterday date is working. 

 

 

 

Could you please advise me 

Labels
Top Solution Authors