Hi community,
How to calculate the "Difference" field?
The data is as follows:
Date | Value | Difference |
01.01.2019 | 1000 | |
02.01.2019 | 1005 | 5 |
03.01.2019 | 1008 | 3 |
The "value" field is cumulative. Difference starts from day 2. Because we don't have data fro 01.01.2019 to compare with .
Thank you.
Solved! Go to Solution.
Hi @MaksimBI
Use the Multi-Row Formula tool: Difference = [Value] - [Row-1:Value]
Hope that helps!
John
Hi @JohnJPS ,
Thank you, that helped.
thanks for posting this question! Exactly what I needed!
I am wondering how I could obtain the difference between the columns in this data structure. The amount of columns should be dynamically determined, so when 202204 comes around, the difference to 202204 should be automatically determined.
When using the multifield formula I am able to compare 202201 to 202202, and 202201 to 202203, but not 202202 to 202203.
I could reformat the data to the below table, and apply the multi-row formula, but, I am wondering how I could use the multi-field formula with the structure above..
Thanks!
Hi @franc1s,
You can start with your 1st grid and just do a transpose (or maybe cross apply - I forget and don't have Alteryx in front of me at the moment) in order to achieve your 2nd grid. Then apply the multirow formula.
Hope that helps!
John