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.
SOLVED

Divide by line

kauser
8 - Asteroid

Hello, 

can you please show me how to Divide line 1 and 2 from each column 

 

Input Data 

 

ABC
61550
3510

 

Expecting Data

 

A=2,B=3,C=5

2 REPLIES 2
flying008
15 - Aurora

Hi, @kauser 

 

FYI.

录制_2025_08_12_07_57_25_665.gif

Pilsner
13 - Pulsar

Hello @kauser,

It looks like @flying008's has already provided a great solution, just thought Id share how Id go about this problem too.

Firstly, I would add a record ID to my data. This is usefull as it acts like a lable so we know which line to divide by.

1.png


Next, I transposed my data, making sure to mark the record ID as a key column.

2.png
After this, you can cross tab your data back, but this time, group by the name field and make the Record ID the column headers.

3.png


Finally, with your original lines now represented as columns 1 and 2, you can simply use the formula tool to divide one by the other.


4.png


I have attached the worklfow below so please feel free to try it out yourself. Please let me know how you get on.

Regards - Pilsner

Labels
Top Solution Authors