Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How do I insert a blank line below each row of known data ?

phoebe_90
8 - Asteroid

How do I insert a blank line below each row of known data and have the value equal to the previous row and the GL Account equal to a fixed value?

For example,

Existing data

GL AccountAmount
69012000255.47
69014000102.72
69031000358.19
6903100038.83

Target data

GL AccountAmount
69012000255.47
24508210255.47
69014000102.72
24508210102.72
69031000358.19
24508210358.19
6903100038.83
2450821038.83
2 REPLIES 2
TUSHAR050392
11 - Bolide

Hey @phoebe_90 You can use this solved solution to insert blank rows between your data - https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-To-Insert-Blank-Rows-in-Be...

 

Then you will have to use Formula tool to change null values in GL account to 24508210 - - IF ISNULL(GL account) THEN '24508210' ELSE GL account ENDIF.

For Amount, you will have to use Multi row formula - IF ISNULL(AMOUNT) THEN ROW-1: AMOUNT ELSE AMOUNT ENDIF.

 

Hope this helps.

CoG
14 - Magnetar

An alternative, simple solution that meets the stated requirements:

Screenshot.png

Depending on need and variability, modifications could be made to make it more intuitive to set the fixed GL Account value, but this should suffice as a starting point.

 

The point of this workflow is to minimize redundant work. Since all of the amounts already exist and we only need to duplicate the record with an updated field, we can perform a self-Union, using a Formula Tool to update the GL Account Field. Everything else in the workflow is for formatting.

 

Hope this helps and Happy Solving!

Labels
Top Solution Authors