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

Calculating the difference from the previous row per company and year

Mwatts23
8 - Asteroid

Hi,

 

Good day!

I hope someone can help me on what formula is needed to get the True Value per row.

The explanation in column E describes how the True Value is calculated.

 

Mwatts23_0-1647538998617.png

 

Please let me know, if you need additional information on my query. Thank you!

 

Best regards,

Mike

 

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @Mwatts23 

 

You would use the multirow formula tool. I created a year field to help, but grouping by company/year you can use a formula to do this logic, checking if it's the first instance (row-1 being null), otherwise subtracting the previous row's snapshot.

 

Luke_C_0-1647539637653.png

 

 

Mwatts23
8 - Asteroid

Thank you @Luke_C  for looking into my query. It is the process and result that I need. Amazing! 

 

Best,

Mike

Labels