Alteryx Designer Desktop Discussions

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

insert 2 or 4 blank rows after specific row

kauser
8 - Asteroid

Hello, 

How can i insert 2 or 4 blank rows after specific line(Total) 

Output

Title$$
A 
B 
C 
TOTAL 
D 

 

Expected Output 

 

Title$$
A 
B 
C 
TOTAL 
NULL 
NULL 
D 
6 REPLIES 6
Yoshiro_Fujimori
15 - Aurora

Hi @kauser ,

 

There might be better ways, but here is one way.

You can change the number of rows by changing the number '2' in Formula tool below.

IF [Title] = "TOTAL" THEN 1 + 2
ELSE 1
ENDIF

 

Workflow

1256353_Workflow.png

kauser
8 - Asteroid

Thanks for your suggestion but there are some problem. if you add value on $$ column suck if you have balance from Total row is 6 then this 6 amount will repeact with null rows. then how can i remove balances from null rows  

flying008
14 - Magnetar

Hi, @kauser 

 

FYI.

 

录制_2024_03_29_09_33_23_871.gif

 

kauser
8 - Asteroid

it doesn't solve the issue please try with input 

 

Output

Title$$
A1
B2
C3
TOTAL6
D4

 

Expected Output 

 

Title$$
A1
B2
C3
TOTAL6
NULL 
NULL 
D4

 

 

flying008
14 - Magnetar

Hi, @kauser 

 

 

IIF([RowCount] != 1,IIF(ToString([_CurrentField_]) = 'Total', 'NULL', Null()), [_CurrentField_])

 

 

录制_2024_03_29_12_47_36_267.gif

 

Input  Output 
Title$$ Title$$
A1 A1
B2 B2
C3 C3
TOTAL6 TOTAL6
D4 NULL 
   NULL 
   D4
Yoshiro_Fujimori
15 - Aurora

Hi @kauser ,

 

In the same way as [Title] column, you can nullify [$$] column in Formula tool.

Title = IF [RowCount] != 1 THEN Null() ELSE [Title] ENDIF

$$ = IF [RowCount] != 1 THEN Null() ELSE [$$] ENDIF          // Added

 

Input

Title$$
A1
B2
C3
TOTAL6
D4

 

Output

Title$$
A1
B2
C3
TOTAL6
  
  
D4
Labels