ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

New column populated as per multiple column values

Sakshi_M
メテオール

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件の返信6
ShankerV
キャスター

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
ネビュラ

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
メテオール

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
メテオール

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
キャスター

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
キャスター

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

ラベル
トップのソリューション投稿者