Alteryx Designer Desktop Discussions

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

Convert value in cells when the same value is present and the Rank is same

ssripat3
8 - Asteroid

I am currently working on some XML data and when I use the ParseXML macro, I kind of  get the result similar to the below "Input" table.

 

Next, I am using a Multi-Row Formula tool and generating a new column called Rank with the below formula

 

IF [Node] = "Part" then [Row-1:Rank] + 1
ELSE [Row-1:Rank] ENDIF

 

 

From the data,  we can see Name and Code repeat multiple times in different rows. Now, I want to change the value of Code if it repeats more than once and it has the same rank.

 

For example: Code - Rank 1 - > Code - Rank 1

 

                              Code - Rank 1 - > Code1 - Rank 1

 

                              Code - Rank 1 - > Code2 - Rank 1

 

I would like to achieve the same with Name values.

 

After processing the data as required, my objective is to transpose the data with Node being the column Names and Value being the data.

 

Expected Input

 

NodeValueRank
Part101ABC1
Module 1
CodeZMA1
DescriptionWHEEL1
Version 1
CodeWHL1
NameLUGNUTS1
Engine 1
Code1ZA2F1
NameLUGNUTS1
Part111ABC2
Module 2
CodeXMA2
DescriptionBATTERY2
Version 2
CodeBAR2
NameHYBRID TECHNOLOGY2
Engine 2
Code2AS3F2
NameHYBRID TECHNOLOGY2
Part211ABC3
Module 3
CodeRAC3
DescriptionBumper3
Version 3
CodeBUMP3
NameFront Bumper3
Engine 3
Code3SF5F3
NameFront Bumper3

 

Expected Data after Processing

 

NodeValueRank
Part101ABC1
Module 1
CodeZMA1
DescriptionWHEEL1
Version 1
Code1WHL1
NameLUGNUTS1
Engine 1
Code21ZA2F1
Name1LUGNUTS1
Part111ABC2
Module 2
CodeXMA2
DescriptionBATTERY2
Version 2
Code1BAR2
NameHYBRID TECHNOLOGY2
Engine 2
Code22AS3F2
Name1HYBRID TECHNOLOGY2
Part211ABC3
Module 3
CodeRAC3
DescriptionBumper3
Version 3
Code1BUMP3
NameFront Bumper3
Engine 3
Code23SF5F3
Name1Front Bumper3
2 REPLIES 2
binuacs
20 - Arcturus

@ssripat3 One way of doing this with the help of the Tile tool

 

binuacs_0-1678291490947.png

 

ssripat3
8 - Asteroid

@binuacs Thank you for the quick response. The worklfow you have given works perfectly for my requirement.

Labels