Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Math in the first row and the take that total and carry it over into the next row...

lconnolly
6 - Meteoroid

Hi there,

 

I need to be able to do math in the first row and the take that total and carry it over into the next row... and so on and so on. Can anyone please help?

 

ALTERYX QUESTION.PNG

 

5 REPLIES 5
Qiu
21 - Polaris
21 - Polaris

@lconnolly 
I think a Multi-row formula is what you are looking for here.

ericsundby
Alteryx Alumni (Retired)

A multi-row formula tool seems to be the solution. I've attached a workflow with the first 4 records of the data in your screenshot that accomplishes this using a multi-row formula tool. Also, if you left click on the multi-row formula tool in the preparation tab and click on "show example", you will see several examples of how it works.

lconnolly
6 - Meteoroid

Let me try to explain it a different way:

 

USED LOC + INBOUND - OUTBOUND = USED LOC X

USED LOC X + INBOUND - OUTBOUND = USED LOC Y

USED LOC Y + INBOUND - OUTBOUND = USED LOC Z

.

.

.

AND SO ON

 

I tried this, but I am not getting what I am looking for:

lconnolly_1-1657762285440.png

 

 

lconnolly_0-1657762242700.png

 

Thanks for your help.

ericsundby
Alteryx Alumni (Retired)

Thanks for the clarification. I've attached a screenshot of the corrected formula, and the updated workflow as well. 

ericsundby_0-1657763702097.png

 

lconnolly
6 - Meteoroid

Thank you!

Labels