Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Update Column based on Multiple Filters

RonitGupta
7 - Meteor

I want to update Column [Product Family] and there are three filters while binaryAnd accepts two only.

 


IF BinaryAnd([Plant]="A",[Product Family]="B",[Product Category]="C") THEN "X" ELSE [Product Family] ENDIF

 

How to deal with that?

 

I have sometime more than 4 filters too. 

16 REPLIES 16
ShankerV
17 - Castor

Hi @RonitGupta 

 

You can type @ which will list down the group of members you need to select.

 

I will select @

 

ShankerV_0-1672133313164.png

 

Hope this helps!!!!

 

Many thanks

Shanker V

 

Felipe_Ribeir0
16 - Nebula

Hi @RonitGupta 

 

When you reach the level 6 (you are current at level 5), you will be able to mention users.

 

https://community.alteryx.com/t5/Alteryx-Community-Resources/FAQs-User-Ranks/ta-p/178548

 

Felipe_Ribeir0_0-1672136226435.png

Felipe_Ribeir0_1-1672136243804.png

 

 

RonitGupta
7 - Meteor

Hi @ShankerV,

 

It is better to use separate formula to each criteria?

 

 

 

 

 

ShankerV
17 - Castor

Hi @RonitGupta 

 

It is not working becoz the country is a column and it is not inside []

 

IF [Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND Country="Canada" OR [Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND Country="Colombia" THEN "Disruptor" ELSE Null() ENDIF

 

Please use parenthesis.

 

 

 

 

ShankerV
17 - Castor

Hi @RonitGupta 

 

Please find the revised formula. This works.

 

IF [Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND [Country]="Canada"
THEN "Disruptor"
elseif [Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND [Country]="Colombia"
THEN "Disruptor"
ELSE Null()
ENDIF

 

ShankerV_0-1672154560639.png

 

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @RonitGupta 

 

Even we can use OR to simplify out if statement.

The below formula also works.

 

IF ([Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND [Country]="Canada")
OR
([Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND [Country]="Colombia")
THEN "Disruptor"
ELSE Null()
ENDIF

 

What I have done is I have grouped the condition via ().

Condition 1: ([Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND [Country]="Canada")

Condition 2: ([Product Category]="Absorb, Blott, Chrom" AND [COMM Grade]="MHPM0240" AND [Country]="Colombia")

If either one condition is true it will reflect "Disruptor"

 

ShankerV_0-1672154876852.png

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

RonitGupta
7 - Meteor

Hi @ShankerV ,

 

Thanks. I can use the either way now. Very helpful.  

Labels