We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Wanted to duplicate the rows based on the scenario.

akumar2609
8 - Asteroid

I need some help to duplicate the rows based on the scenario names. scenario names and count will keep changing month-on-month. In the current month, there are three scenario and I need the complete data set to be copied thrice and putting the Scenario name in a existing column.

 

S.No

SCENARIO

1

BAC Adverse

2

BAC China Conflict

3

BAC Severely Adverse

 

 

Data set

Name

SCENARIO

COR_LOB

Total

BOA

BAC Baseline

D & SB

15

CITI

BAC Baseline

CS

18

JP

BAC Baseline

DFS

22

 

Required result

Name

SCENARIO

COR_LOB

Total

BOA

BAC Baseline

D & SB

15

CITI

BAC Baseline

CS

18

JP

BAC Baseline

DFS

22

BOA

BAC Adverse

D & SB

15

CITI

BAC Adverse

CS

18

JP

BAC Adverse

DFS

22

BOA

BAC China Conflict

D & SB

15

CITI

BAC China Conflict

CS

18

JP

BAC China Conflict

DFS

22

BOA

BAC Severely Adverse

D & SB

15

CITI

BAC Severely Adverse

CS

18

JP

BAC Severely Adverse

DFS

22

4 REPLIES 4
ShankerV
17 - Castor

Hi @akumar2609 

 

This can be easily achieved with the help of append fields tool.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @akumar2609 

 

Please find the expected output below.

 

ShankerV_1-1673518535099.png

Feel free to mark the solution of the post which helped to resolve the issue, so similar issues faced by other community members in future can be helpful to refer the solution.

 

Many thanks

Shanker V

 

Felipe_Ribeir0
16 - Nebula

Hi @akumar2609 

 

One way of doing this

 

Felipe_Ribeir0_0-1673518354241.png

 

ShankerV
17 - Castor

Hi @akumar2609 

 

Dataset 1:

ShankerV_0-1673518693048.png

Dataset 2:

ShankerV_1-1673518710006.png

Append fields tool:

ShankerV_2-1673518730946.png

 

ShankerV_3-1673518759445.png

 

Union tool:

ShankerV_4-1673518780663.png

 

ShankerV_5-1673518795302.png

 

 

Expected Result:

 

ShankerV_6-1673518873844.png

 

Feel free to mark the solution of the post which helped to resolve the issue, so similar issues faced by other community members in future can be helpful to refer the solution.

 

Many thanks

Shanker V

Labels
Top Solution Authors