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

Adding Data Rows through Formulas

Tyler_
6 - Meteoroid

Hello, I have what should be a simple problem but the answer is alluding me.

 

I am trying to add data rows to my base data set based off of formulas. The example data set would start as the following:

Picked ByColorCountDate Picked
JaneRed356/1/2020
BobYellow235/2/2020
CharlieGreen167/3/2020
WandaBlue418/4/2020
VisionPurple644/5/2020

 

and the end result that I am trying to get to would be the following:

Picked ByColorCountDate PickedFruit
JaneRed356/1/2020Apple
JaneRed356/1/2020Strawberry
JaneRed356/1/2020Raspberry
JaneRed356/1/2020Cherry
BobYellow235/2/2020Banana
BobYellow235/2/2020Lemon
CharlieGreen167/3/2020Avocado
CharlieGreen167/3/2020Lime
WandaBlue418/4/2020Blueberry
VisionPurple644/5/2020Grape

 

I have added an example workbook and I can calculate the Fruit column just fine. Where I need help is merging the calculated additions into the original data set to get the final result pictured above.

 

Any help that can be offered would be appreciated. I suspect it involves the Append Field tool but I can't seem to find the right combination to arrive at the desired result.

4 REPLIES 4
ChrisTX
15 - Aurora

Take your several formulas that calculate your new columns for Fruit and store them in a Text Input tool. Then just use a Join tool.

 

Chris

afv2688
16 - Nebula
16 - Nebula

Hello @Tyler_ ,

 

you can do this easily by using the generate rows tool.

 

Untitled.png

 

Regards

JulioMO
9 - Comet

Hi @Tyler_ 

 

Why don't you create a master file with the combination of color and fruit and then use a Join Tool? I attach the workflow. 

 

Regards

Tyler_
6 - Meteoroid

Thank you all for your replies. The Join method would work, but the generate rows tool is perfect for my specific use case as my next step was to run a date calculation that required the row record. Thank you afv2688 for introducing me to this great tool!

Labels