In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Rearrange

Raj
16 - Nebula

there is a small confusion i am missing out 

the data needs to be converted from input to output

Raj_0-1671613439458.png

the required output is

Raj_1-1671613538095.png

kindly help

3 REPLIES 3
ShankerV
17 - Castor

Hi @Raj 

 

Please find the below solution. the workflow is very dynamic where we need to add only input.

 

ShankerV_0-1671616919453.png

 

ShankerV_1-1671616927696.png

 

 

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

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @Raj 

 

Step 1: Input

ShankerV_0-1671617074382.png

 

Step 2: select tool

To increase the size of the string

ShankerV_1-1671617108971.png

 

Step 3: Regex formula

ShankerV_2-1671617132678.png

 

Step 4; Multi row formula tool

if [Matched]=1
then [Field1]+"-"+[Row-1:Field1]
else [Field1]
endif

 

ShankerV_3-1671617155826.png

 

Step 5: 

ShankerV_4-1671617180122.png

 

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

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Raj 

 

Step 6: Cross tab tool from T node of Filter

ShankerV_0-1671617259653.png

 

Step 7: Cross tab tool from F node of Filter

ShankerV_1-1671617281836.png

 

step 8: Text to columns tool

ShankerV_2-1671617304334.png

 

step 9: Join tool

ShankerV_3-1671617329153.png

 

Step 10: Formula tool

ShankerV_5-1671617355019.png

 

Step 11: Union tool

ShankerV_6-1671617380600.png

 

 

Desired output after run:

ShankerV_7-1671617398843.png

 

If this helps, 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
Top Solution Authors