I have a field called Roles. It can have any/all/none combination of the following values: "Manager", "Associate", "Survey Recipient", "OE Survey Recipient"
I'm trying to count the # of employees who are Survey Recipients(that specific string). As long as the role has "Survey Recipient". If it ONLY has "OE Survey Recipient" it should NOT be counted. For the purposes of this workflow you can ignore the "meaning" of Survey Recipient and just think of it as a string.
I've been trying to achieve this using various iterations of if contains and !contains, but because "OE Survey Recipient" ALSO "contains" the string "Survey Recipient" it is counting these when it shouldn't.
Here's an example:
| Name | Role | Should it be Counted | Why? |
| Bob | Manager, Survey Recipient | Y | Is a Survey Recipient |
| Julie | OE Survey Recipient | N | Is NOT a "Survey Recipient" |
| Jon | Survey Recipient, OE Survey Recipient | Y | Is a Survey Recipient |
| Will | Associate | N | Not a survey recipient |
I'm betting RegEx is the way to go, but I'm relatively new to Alteyrx and that's a bit intimidating!
Thanks for any help!
Craig