Free Trial

Alteryx Designer Desktop Discussions

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

Current row - previous row calculation

hegdepavithra10
9 - Comet

Hi,

 

I have a column with some numerical data in it. I want to create a column which would have the value current row -previous row of the given column. I tried to Multi row formula, but i was not able to add the expression.

 

 

 

hegdepavithra10_0-1603803671238.png

 

Could you please assist 

6 REPLIES 6
echuong1
Alteryx Alumni (Retired)

You are correct in that it would be a multi-row! See attached.

 

echuong1_0-1603804036091.png

 

Emil_Kos
17 - Castor
17 - Castor

Hi @hegdepavithra10,

 

Multi row formula was the one the correct formula for this task:

 

Emil_Kos_0-1603804053737.png

 

 

Output:

 

Emil_Kos_2-1603804100588.png


If this is something helpful please mark as solved!

hegdepavithra10
9 - Comet

@echuong1 Thank you . This worked. One more query. If i have multiple fields as such to be created, should i use multiple "Multi Row formula"?

echuong1
Alteryx Alumni (Retired)

Yes, exactly. There will be a multi-row formula per column created/updated. 

 

It is unlike the Formula tool in that you can only handle one column at a time, versus the Formula tool you can consolidate.

Emil_Kos
17 - Castor
17 - Castor

Hi @hegdepavithra10,

 

Thank you for marking my post as an answer!

 

How many columns like this will you need to create?

 

gouravbibhor2020
5 - Atom

I need this for Multiple column 

Labels
Top Solution Authors