We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Creating another row or 2 based on a calulation

peanut89
8 - Asteroid

There are 2 tables (Table 1 and table 2). the image you see is table 2. and will always be a constant.

So if application area is 'building automation' in both table 1 and table 2 . and revenue in table 1 is 100.00 usd

Another 2 rows need to be generated.

row 1: segment Lv 2#1 = smart building &  {segment % #1 } *revenue = 60

row 2: segment  #2 = home locks &  {segment % #2 } *revenue = 40

 

Hope im making some sense. 

 

Your help is appreciated 

 

image.png

5 REPLIES 5
Christina_H
14 - Magnetar

This looks like you need to transpose table 2 to get the segments on separate rows (might take some fiddling to get the layout correct, but since it's a fixed table you could also do it manually), then joining to table 1 on Application Area will result in two rows.  A formula tool is the last step to get the correct revenue figures.

peanut89
8 - Asteroid

i dont understand..

BRRLL99
11 - Bolide

Please provide sample data, with ur expected output

Christina_H
14 - Magnetar

Something like this:

Christina_H_0-1664282433168.png

 

peanut89
8 - Asteroid

Thank you so so much!

Labels
Top Solution Authors