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

duplicate rows per condition

Nazik_Ghukasyan
7 - Meteor

Hello team

 

I read some solution by using Generate row, Record ID tools etc but couldn't find an answer for my question.

 

attached is the database where I have following structure

Debit Account    Credit Account   Debit Amount   Credit Amount

155489                143987                 11,000               11,000

 

I would like to duplicate each row by creating only one column Account and leaving corresponding amount only under debit or credit

Account     Debit Amount   Credit Amount

155489        11,000                0

143987         0                        11,000

 

do you have any idea to to come to this result?

 

thanks

Nazik

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @Nazik_Ghukasyan 

 

Here's one approach you could use:

 

Luke_C_0-1617023299896.png

 

 

 

Nazik_Ghukasyan
7 - Meteor

@Luke_C thank you this is very very helpful 🙂

Labels
Top Solution Authors