Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Generate new rows

jswirat
5 - Atom

Hi,

I have a table that looks like this:

 
BoxElement
Box1AMOUNT
Box1PRODUCT
Box1BRANCH
Box2BASEAMOUNT
Box3BRANCH

 

What I'm trying to do is for each box value that does not have BASEAMOUNT as an element, I need to generate a row so it looks like this:

BoxElement
Box1AMOUNT
Box1PRODUCT
Box1BRANCH
Box1BASEAMOUNT
Box2BASEAMOUNT
Box3BRANCH
Box3BASEAMOUNT
 
 

I've been trying to use the GenerateRows tool, but I'm so lost.

4 REPLIES 4
Emil_Kos
17 - Castor
17 - Castor

Hi @jswirat,

 

I am not following that.

 

Can you explain it a little bit more?

messi007
15 - Aurora
15 - Aurora

@jswirat,

 

Please see below:

 

messi007_0-1608569126197.png

Attached the workflow,

 

If this solves your issue please mark the answer as correct, it will help others!

 

Regards,

JoeS
Alteryx
Alteryx

Hi @jswirat 

 

I went about it slightly differently.

 

I captured each Box value, then added the Element field and unioned them all back in. 

Finally the Unique removes any duplicates that already had the BASEAMOUNT.

 

Workflow.jpg

Emil_Kos
17 - Castor
17 - Castor

Hi @jswirat,

 

Actually I figured it out. I created a base amount positions for each box in the data and used unique tool afterwards.

 

As I was thinking that you will need to have a base amount as a last row I have used sort tool with additional column created only for sorting purpose.

 

Emil_Kos_1-1608569364568.png

Please mark as a solution if this was helpful!

Labels