Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Insert Blank Rows Based on a Condition

wht822
7 - Meteor

Hi all,

 

I'm trying to insert a blank row underneath whenever the word 'TOTAL' appears in my Product Type field. Does anyone know of a way to do this? In my example, I would just want a blank row to be inserted where row 11 is and for all the existing data to get moved down. I will need to do this whenever 'TOTAL' appears, which will be another dozen more times in this dataset.

 

 

wht822_0-1589995027815.png

 

2 REPLIES 2
Aaron_Harter
11 - Bolide

Hi @wht822,

 

In the attached solution, I've assigned a RecordID, then used a filter to split off any totals, update the RecordID for these new blank rows to show up just below the totals in the data set, then Union the data back together and Sort into the desired order:

2.PNG 

Bennel_Wilson
8 - Asteroid

Hi @wht822 ,

I tried drawing up a workflow for your query. Let me know if this helps.

 

Input:

Bennel_Wilson_3-1589999166428.png

 

 

Workflow:

Bennel_Wilson_1-1589999025765.png

 

Output:

Bennel_Wilson_2-1589999120967.png

 

Attached workflow for your reference.

 

Regards

Benn.

 

P.S: In case this solves your query, kindly mark this as a solution.

Labels
Top Solution Authors