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

Generating Rows.

danielgrayhobbs
6 - Meteoroid

Hi all, 

I am sure this is very simple for many, but I have not used the generate rows tool before and cant work this out after some searching. 

 

Based on the "Expected Duration" column.

I would like to add a new row each time the number is greater than 390.

For example with the first row, Faketown, which is 400, I would like a new row to be created with '10' in the "Expected Duration" column for "Site Name" 'Faketown'

Im assuming this is generate rows tool but just cannot work this out.


Thank you.

e13d38ec-9e40-44b1-a835-90bdc57ad7a0.jpg

 

 

11 REPLIES 11
flying008
15 - Aurora

Hi, @danielgrayhobbs 

 

Like this ?

 

录制_2023_11_25_10_16_30_292.gif

 

Input  
Site NameExpected Duration 
Fast350 
Faketown400 
Fakeville500 
Fakest450 
   
Output  
Site NameExpected DurationRowCount
Fast3501
Faketown4001
Faketown102
Fakeville5001
Fakeville1102
Fakest4501
Fakest602

 

录制_2023_11_25_10_21_21_575.gif

danielgrayhobbs
6 - Meteoroid

Hi Flying008.

Yes that is exactly what I am after. Would you care to share a view or the example workflow back so I can see how to achieve this?

Thank you very much. 

danielgrayhobbs
6 - Meteoroid

Oh sorry. Didnt see the second video. Will try attempt that now. 

Thank you again!

flying008
15 - Aurora

Hi, @danielgrayhobbs 

 

If help you get your want, please mark it as a solution and give a like for more share.

danielgrayhobbs
6 - Meteoroid

Thank you for your assistance. 

Is there a way I could edit this to handle say me putting 1500 into the expected duration. 

For example I would like this to break into 4x rows and I think the number 2 highlighted in Generate Rows will always limit this to two rows. 

I really appreciate your help on this. 



flying008
15 - Aurora

Hi, @danielgrayhobbs 

 

Could you please give a want output data for this case?

danielgrayhobbs
6 - Meteoroid

Absolutely, Here you are. 

Thank you again. 

CoG
14 - Magnetar

Adapting @flying008's excellent solution:

Screenshot.png

danielgrayhobbs
6 - Meteoroid

That is spot on @CoG . Thank you and @flying008 for all your help. This is doing exactly what I needed.!

 

Labels