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

Generate a new row for each set of similar rows

JoeCat
7 - Meteor

Essentially creating something of a title row that is ahead of each group of rows. 

The desired outcome would be to create the highlighted rows (that would not currently exist).   I'm having a hard time with Generate rows and my testing is generating MILLIONS of rows so I'm definitely not doing something right.  

 

I used Multirow formula to created a restarting sequence of numbers each time the "parent commodity clean" changes, starts at 2 and goes up.  So the logic I'd expect would be for any row that has "CommodRow" = 2, create a duplicate of it.

Workflow to play with attached. Thanks in advance.
Screenshot 2025-01-09 165119.jpg

5 REPLIES 5
binuacs
21 - Polaris

@JoeCat One way of doing this

image.png

Qiu
21 - Polaris
21 - Polaris

@JoeCat 
We can also go with a bit different approach as below.
Using Unique tool to get identify the first row of every  "parent commodity clean" then Union back to the original data stream.

0110-JoeCat.png

flying008
15 - Aurora

Hi, @JoeCat 

 

FYI.

 

录制_2025_01_10_10_43_01_879.gif

 

DescriptionItem NumberParent Commodity CleanCommodRowRowCount
Book item 1FG006073Books21
Book item 1FG006073Books2 
Book item 2FG006075Books3 
Book item 3FG006130Books4 
Book item 4FG006227Books5 
Games 1FG001786Games21
Games 1FG001786Games2 
Games 2FG001828Games3 
Games 3FG001902Games4 
Games 4FG001904Games5 
Toys 2FG001782Toys21
Toys 2FG001782Toys2 
Toys 1FG003443Toys3 
JoeCat
7 - Meteor

I like this approach best, very simple and straightfoward.  Thanks!

JoeCat
7 - Meteor

Thanks everyone, I would never thought of unioning data back onto itself.   Also just learned about the Tile tool.  Thank you

Labels
Top Solution Authors