Alteryx Designer Desktop Discussions

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

New column populated as per multiple column values

Sakshi_M
7 - Meteor

Hi all, 

I have a case where for every record some conditions are met while other are not.

using Alteryx, i want to create a new column that combines this information in one field.

 

Input data looks like this:

 

IdCondition 1Condition 2Condition3Condition 4Condition 5
ARequiredNot RequiredRequiredNot RequiredRequired
BNot RequiredNot RequiredNot RequiredRequiredNot Required
CRequiredNot RequiredNot RequiredNot RequiredNot Required
DNot RequiredRequiredNot RequiredRequiredNot Required
ENot RequiredRequiredRequiredRequiredNot Required

 

And output should look like this.. 

 

IdCondition 1Condition 2Condition3Condition 4Condition 5Condition applicable
ARequiredNot RequiredRequiredNot RequiredRequired1,3,5
BNot RequiredNot RequiredNot RequiredRequiredNot RequiredNone
CRequiredNot RequiredNot RequiredNot RequiredNot Required1,3,5
DNot RequiredRequiredNot RequiredRequiredNot Required2,4
ENot RequiredRequiredRequiredRequiredNot Required2,3,4
6 REPLIES 6
ShankerV
17 - Castor

Hi @Sakshi_M 

 

Can you please explain your condition applicable column.

 

As I see B has Condition 4 required, but not used in the output column as 4.

 

Many thanks

Shanker V

Felipe_Ribeir0
16 - Nebula

Hi @Sakshi_M 

 

One way of doing this. Btw, for B 4 is applicable right? And for C, only 1 is applicable. I understood applicable = Required, if it is not please tell what you understand as applicable.

Felipe_Ribeir0_0-1670506031253.png

 

Sakshi_M
7 - Meteor

As mentioned by Felipe, Required = applicable. 

The output was manually populated.. so it must be an error from my end to have missed some conditions.

Sakshi_M
7 - Meteor

Yes.. your assumption is right, Thanks for a quick turnaround.. I am trying to implement this now.. 
Hope there can be a more concise solution

ShankerV
17 - Castor

Hi @Sakshi_M 

 

Tried to make it concise, but tried to eliminate only one or 2 steps.

But with a total different approach.

 

Check if it helps!!!

 

ShankerV_0-1670509431285.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Sakshi_M 

 

Could you please check and confirm whether it worked.

 

If yes, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

Labels