Hi,
I have a scenario where I want to calculate the differential amount between successive rows on the fly..sample structure of my table is like this:
TrnsID | Amount | Date | Diff. |
1001 | 120 | 1/1/2012 | 0 |
1002 | 100 | 1/2/2012 | -20 |
1003 | 160 | 1/3/2012 | 60 |
I want to show a new column "Diff." on the fly that would show 0, -20, 60 in the above example.Is there a way I can achieve this without Triggers(while loading) in HANA using calculation views or decision tables? Or can this be done only in the reporting layer?
Thanks,
Anil