Alteryx Designer Desktop Discussions

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

Logic

Zaid
8 - Asteroid

HI All,

 

I would request you to help me nail a logic. I have got three fields, x, cond1 and cond 2. the value or metric in x needs to be checked against the condition present in cond1 and cond2 and based on whichever matches correctly, i would need a new column say y, consisting of the condition it satifies, i.e. either cond1 or cond2 or N/A. Please refer to the below mentioned input and desired output file.

Sample Input:

xcond1cond2
100>=99>=100
100<=100<=80
56>6>55
100$>=54$>=99$
80>81>100

 

Desired output

 

xcond1cond2y
100>=99>=100cond2
100<=100<=80cond1
56%>6%>55%cond2
100$>=54$>=99$cond2
80>81>100N/A
13 REPLIES 13
LordNeilLord
15 - Aurora

Out of interest, I just looked this up as a way to extract decimal numbers....

 

In the regex tool (in parse mode) you can extract the decimal numbers only by using ([[:digit:].]+)

MarqueeCrew
20 - Arcturus
20 - Arcturus

Here's where I was ....

 

I parsed the data and was ready to start evaluating...  

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Zaid
8 - Asteroid

hey @LordNeilLord. Unfortunately I am unable to open the last workflow u uploaded, probably because I am using an older version. We just need to change the parsing or any other changes u have done. Can you please send a screenshot of the changes u have done in the regex tool.

 

Thanks

Zaid

LordNeilLord
15 - Aurora

Hey @Zaid

 

Here's an 11.7 version for you

Labels