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

Check condition by group

HarshaK
5 - Atom

 

Hello,

I have data which looks similar to below, I want to create a field to identify if any Sub-group (M1,M2...) within Master Group(A,B..) has a value "3" in the Indi Type Column.

 

I would like to have a new column Result and data values like below

 

 

 

 Master GroupSub GroupIndi TypeResult 
 AM11Y 
 AM21Y 
 AM31N 
 AM32  
 AM32  
 AM33  
 AM41N 
 AM42  
 AM42  
 AM43  
 AM43  
 BM54Y 
 BM64Y 
 BM73N 
 BM74  
      
6 REPLIES 6
fmvizcaino
17 - Castor
17 - Castor

Hi @HarshaK ,

 

I'm attaching an example showing how to do it.

 

Take a look and let me know if this works for you.

Best,

Fernando Vizcaino

jyurkovich
7 - Meteor

I went by your description and not the example 'Result' column, which did not line up with your description.

HarshaK
5 - Atom

Thanks for your response. Your solution works but is it possible to just show the value once for each group like below.

 

 

Master GroupSub GroupIndi TypeResultResult Needed
AM11NN
AM21NN
AM31YY
AM32Y 
AM32Y 
AM33Y 
AM41YY
AM42Y 
AM42Y 
AM43Y 
AM43Y 
BM54NN
BM64NN
BM73YY
BM74Y 

 

fmvizcaino
17 - Castor
17 - Castor

Hi @HarshaK ,

 

My solution is right above and it is exactly as you requested.

 

Please check that out 🙂

Best,

Fernando Vizcaino

HarshaK
5 - Atom

Thanks for your response, I am still testing this solution with my data set. I will let you know here how it goes. 

HarshaK
5 - Atom

Hi,

I was able to use this solution as well. Thanks for your time and expertise.

Labels