We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help need with below mentioned logic using Alteryx

sanky1990
7 - Meteor

I have added below input data and output structure that i need to create with alteryx

 

Input data: 

Column AFlag1Flag2Flag3Flag4Other columns
AYNNNSome data 1
BYNYNSome data 2
CYYYNSome data 3
DNYNYSome data 4

 

Expected Output:

 

Column ANew ColumnOther columns
Ametric1Some data 1
Bmetric1Some data 2
Bmetric3Some data 2
Cmetric1Some data 3
Cmetric2Some data 3
Cmetric3Some data 3
Dmetric2Some data 2
Dmetric4Some data 4

 

New Column Definition 

 

if flag1=Y then 'metric1'
if flag2 =Y then 'metric2'
if flag3=Y then 'metric3'
if flag4=Y then 'metric4'

1 REPLY 1
alexnajm
18 - Pollux
18 - Pollux

Transpose your data (group by Column A and Other columns, data columns should be the 4 flag columns), Filter to where Value = "Y", and Formula to do the conversions you mentioned 😊

Labels
Top Solution Authors