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.

How to generate a new row based on the subtraction of the above two rows?

fullmoon558
6 - Meteoroid

Hi folks,

 

I need some help for the following row generation/calculation. I need to generate a new row (Row 3) and this row is the result from (Row 1) minus (Row 2). I have been trying multi row formula but I could not figure it out. Can anyone please help me? Thank you.

 
 ApplePearMelon
Row 1354
Row 2231
Row 3123
5 REPLIES 5
markcurry
12 - Quasar

Hi @fullmoon558 

 

See the attached workflow that has a few methods you can use to do this.  The easiest probable the 2nd one.  As long as it's always 2 rows you're just dealing with.  You could use the Multi-Row tool, but you'll need a tool per field.  

 

Hope that helps,

 

 

binuacs
21 - Polaris

@fullmoon558 One way of doing this

Screenshot 2023-07-06 172220.png

fullmoon558
6 - Meteoroid

Thanks folks. Any easier way to automate this? Or I only have the cross tab and multi-formula row options. Is there a tool that I can generate a new row based on the calculation from previous two rows?

binuacs
21 - Polaris

@fullmoon558 Another method

 

Screenshot 2023-07-07 090417.png

 

fullmoon558
6 - Meteoroid

Thanks binuacs!

Labels
Top Solution Authors