Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Alteryx is here to help you solve your biggest data challenges. Read about the new Virtual Solution Center here.
SOLVED

Create new rows based on conditions

Highlighted
7 - Meteor

Hi,

I have a dataset that looks like below

anhdo92_0-1581551373567.png

What I wanna do is to generate new rows based on certain conditions such as:

If Company Entity is MBB then generate 2 more rows with ProcessingOrg PM-MBB-A11SG  AND PM-MBB-A11UK 

If Company Entity is MIMI then generate 1 more row with Processing Org PM-MIMI-HQ8SG

If Company Entity is MBP then leave Processing Org as it is

 

Output should look like this

anhdo92_1-1581551681929.png

 

Any help is appreciated!


Thanks

 

Highlighted
14 - Magnetar

This is how I would do it

 

DavidP_0-1581552832162.png

 

Highlighted
9 - Comet

DavidP's solution is elegant and probably faster than my approach.

 

The approach I would have taken would be to create a text file with the CompanyEntity and the required suffixes, then to perform a join on CompanyEntity, with a formula tool afterwards to modify the ProcessingOrg

Highlighted
7 - Meteor

Perfect! Thanks guys!

Labels