I need to create a column in a view which is derived as below.
The calculated column is derived from Amount
column where a row value is derived by subtracting from previous row value of Amount
, and every 1st contract that starts will have no value as it's the first row of that contract.
Can someone please suggest what option I have to achieve this?
Contract | DateValue | Amount | Calculated Column |
---|---|---|---|
111 | 20-June-2023 | 100 | |
111 | 21-June-2023 | 150 | 50 |
111 | 21-June-2023 | 250 | 100 |
111 | 21-June-2023 | 200 | 50 |
222 | 20-June-2023 | 300 | |
222 | 21-June-2023 | 350 | 50 |
222 | 22-June-2023 | 450 | 100 |
333 | 23-June-2023 | 100 | |
333 | 24-June-2023 | 200 | 100 |
333 | 24-June-2023 | 250 | 50 |
Any suggestions are welcome.