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

Alteryx Designer Desktop Discussions

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

Concatenate rows based on credit & debit accounts

Kavya132017
8 - Asteroid

I have a data where all the debit account numbers are same("1" in attached data), and there are 2 different credit account numbers("2" & "3" in attached data). There is always a pair for each transaction.Single person can have multiple transactions of same amount too.

example: 1&2, 1&3.

 

Debit & Credit are currently stored in 2 different rows. I need to merge them into single row for each transaction, by identifying the pairs.

 

Attached is sample data & required output

2 REPLIES 2
ShankerV
17 - Castor

Hi @Kavya132017 

 

One way of doing this.

 

ShankerV_0-1683101117257.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Kavya132017 

 

Step 1: Input

ShankerV_0-1683101160896.png

 

Step 2:

 

ShankerV_1-1683101182577.png

ShankerV_2-1683101199610.png

 

Step 3:

 

ShankerV_3-1683101226796.png

ShankerV_4-1683101241865.png

 

Many thanks

Shanker V

Labels
Top Solution Authors