Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Help with conditional formula / extraction

AjaySetty
8 - Asteroid

Hello Masters,

 

I have the below data set example where C is the resulting output I need, out of the A & B column i want to select data which has values into C.

Please help.

 

ABC
R2015-100702015-10070
2013-10049D2013-10049
A2018-002612018-00261
2018-00113F2018-00113
2019-00118J2019-00118
A2012-100142012-10014
10 REPLIES 10
marcusblackhill
12 - Quasar
12 - Quasar

Hey @AjaySetty !

 

Well, depend of the table rules I think, but with data like that you can just concatenate both columns and then remove any letter inside the column like in that example attached.

 

Hope that help! 

atcodedog05
22 - Nova
22 - Nova

Hi @AjaySetty 

 

Here is a workflow for the task.

Formula:

if REGEX_Match([A], "\d+-\d+") then [A]
elseif REGEX_Match([B], "\d+-\d+") then [B]
else Null() endif

Output:

atcodedog05_0-1606417378288.png

Workflow:

atcodedog05_1-1606417398955.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Qiu
20 - Arcturus
20 - Arcturus

@AjaySetty 
I am not sure if the Column C is as input or output here.

if output, @atcodedog05 has given great answer.

If input, a filter tool might the one to use.

test1.PNG

MarqueeCrew
20 - Arcturus
20 - Arcturus

@AjaySetty ,

 

 Did you happen to try:

 

MIN([A],[B])

 

i think that will work.  Else Max()

 

 cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
grazitti_sapna
17 - Castor

Hi @AjaySetty,

 

Here is my take on this problem.

 

grazitti_sapna_0-1606454331300.png

 

I hope it helps.

 

 

Sapna Gupta
atcodedog05
22 - Nova
22 - Nova

I dont know how exactly does that work, logic behind it.

 

But interesting concept @MarqueeCrew 

 

Thanks for this great new learning 🙂

AjaySetty
8 - Asteroid

This was so simple and small, now i feel silly to ask this question.

Thanks so much but how does that formula work?

atcodedog05
22 - Nova
22 - Nova

@AjaySetty 

 

Dont worry its not silly.

 

Even i would like to know how it works.

MarqueeCrew
20 - Arcturus
20 - Arcturus

@atcodedog05 ,

 

 when you sort the values of [a] and [b], 2020 comes before Apple.  Numbers come first and then letters. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels