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

Copy row where where condition is true

tonypreece
10 - Fireball

I'd drawing a blank on this task and want to use Generate Rows tool but not sure it's the right one!

 

My data is in the first table. Where campaign = 1 I want to duplicate that row but add a week onto the date, giving table 2.

 

Can someone point me in the right direction please?

 

W/EProductCampaign W/EProductCampaign
13/11/2019A0 13/11/2019A0
13/11/2019B0 13/11/2019B0
13/11/2019C1 13/11/2019C1
13/11/2019D0 20/11/2019C1
    13/11/2019D0
3 REPLIES 3
tonypreece
10 - Fireball

Am I allowed to solve my own problem?!!!  It became obvious right after I posted the question.

 

tonyp_1-1574873720172.png

Claje
14 - Magnetar

While this is probably possible using only a generate rows tool, I think that is a relatively complex design.  I instead set this up using a Generate Rows, Formula, and Select tool.

 

Take a look at the attached and let me know if you have any questions!

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @tonypreece,

 

I believe this is what you're trying to achieve? I've used the generate rows tool.

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workbook for you to download if needed.

 

Regards,

Jonathan

Labels