Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA Calculation of differential amount on the fly

$
0
0

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:

 

TrnsIDAmountDateDiff.
10011201/1/20120
10021001/2/2012-20
10031601/3/201260

 

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


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>