Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Merge current row and the below row and display the data in a new column

SaiJanani
7 - Meteor

Hi,

 

In the below sample, I am trying to combine the data in the 1st and 2nd row from Col A and display that combined data in both 1st and 2nd rows in Col B keeping other column's data intact

 

Sample Input:

Col ACol BCol CCol DCol ECol F
ABC123LU567 ABCBMN 
USD 1963753428
DEF187LU698 XYZERTSLOP
EUR 51423658157
GHF197LU167 PQRSWERGHF
KWD 56976321637
HML321LU348 TURRWDFGH
AUD 97421482854
LKH456LU571 PWSCFGQWER
USD 102875321754
LMB879LU879 LCXQWENJI
AUD 863637167785

 

 

 

 

Sample Output:

Col ACol BCol CCol DCol ECol FCol G
ABC123ABC123USDLU567 ABCBMN 
USDABC123USD 1963753428
DEF187DEF187EURLU698 XYZERTSLOP
EURDEF187EUR 51423658157
GHF197GHF197KWDLU167 PQRSWERGHF
KWDGHF197KWD 56976321637
HML321HML321AUDLU348 TURRWDFGH
AUDHML321AUD 97421482854
LKH456LKH456USDLU571 PWSCFGQWER
USDLKH456USD 102875321754
LMB879LMB879AUDLU879 LCXQWENJI
AUDLMB879AUD 863637167785
3 REPLIES 3
Luke_C
17 - Castor
17 - Castor

Hi @SaiJanani 

 

Here's an example of how to do this with the multi-row formula tool. I assume the 2nd row is currency codes, so I use the expected length of 3 to do the logic. 

 

Luke_C_0-1643124278544.png

 

 

RolandSchubert
16 - Nebula
16 - Nebula

Hi @SaiJanani 

 

the Multi-Row Formula tool should solve your problem.

 

2022-01-25_16-35-43.jpg

 

Let me know if it works for you.

 

Best,

 

Roland

SaiJanani
7 - Meteor

Hey, thanks.. both worked for me..

Labels