Alteryx Designer Desktop Discussions

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

How to update the values in columns - Need Help

alt_tush
9 - Comet

Hi,

 

We have following set of data where from Field2 till Field6 have "0" & "1" Numeric values. (Int64). We have fixed number of columns in below table. Name column have unique name values.

 

Input Data ;

 

NameField2Field3Field4Field5Field6
Jack11001
Mike01001

 

I am expecting below output every row have only one "1" value in column and rest of the column value should become "0".

For next row if same column have value "1" then it should update "0" and other column value should be "1".

The logic is there should be only one time value "1" in each row. If there are multiple "1" then others "1" value should replace with "0".

This logic i need based on group level of Name column.

 

For example in above table in "Jack" row there are total 3 "1" values found in columns. So workflow should create the 3 records of Jack entries. For example :-

NameField2Field3Field4Field5Field6
Jack10000
Jack01000
Jack00001

 

Expected Output : -

 

NameField2Field3Field4Field5Field6
Jack10000
Jack01000
Jack00001
Mike01001
Mike01001

 

Can you please assist me.

1 REPLY 1
Qiu
20 - Arcturus
20 - Arcturus

@alt_tush 
We can use the Multi-row tool to identify the null 0 values.

0812-alt_tush.PNG

Labels