Alteryx Designer Desktop Discussions

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

True/false

juliussorensen
6 - Meteoroid

Hi. See below the following table. How would one go about creating a flow which produced the column Istrue as output.

AccountProductIsTrue

1

A0
1B0
1C0
2A1
3A1
3A1
4B0
4C0

So there is 4 scenarios as illustrated above.

1 account with 1 product A, and no other products attached, should output 1.

1 account with multiple product A's, and no other products attached, should output 1.

1 account with product A as well as B /& C should output 0.

1 account with product B/&C should output 0.

 

Thanks in advance.

 

2 REPLIES 2
JamesCharnley
13 - Pulsar

Hi @juliussorensen ,

 

This would work for your example but would obviously need some slight changes if the products are called something different. It might not be the cleanest but should work. It's using a combination of the regexmatch and contains functions to find your relevant tags.

 

JamesCharnley_0-1666358662049.png

JamesCharnley_0-1666358748404.png

 

 

 

 

Let me know if you have any questions.

juliussorensen
6 - Meteoroid

Thank you so much for the swift solution :) It's working

Labels
Top Solution Authors