Alteryx Designer Desktop Discussions

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

Dynamic Replace and Expression

jenettd
7 - Meteor

Hi,

 

I'm using the Dynamic Replace tool to find values in a field and attach a rule to them. I'm using an excel spreadsheet that has a list of the rules. The expression I'm using isn't working. I want it to find values not equal to Yes or No and attach the Fail rule (under the RuleEval column) to them. The expression is only finding values that don't equal Yes and not looking at the "No" part of the expression and attaching the Fail rule to them.

 

This is what is in my Rules spreadsheet - 

New FieldRuleExpressionRuleEval
RuleEval9[Rule]=9 AND [Value] != "Yes" OR "No"Fail - Does not contain Yes or No

 

This is the output. It is failing the No values when it shouldn't.

ValueRuleEval
NoFail - Does not contain Yes or No
NoFail - Does not contain Yes or No
NoFail - Does not contain Yes or No
2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@jenettd  Close! Try changing your expression to something like this:

[Rule]=9 AND [Value] Not in ( "Yes","No")
jenettd
7 - Meteor

That worked! Thank you!

Labels
Top Solution Authors