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

How to achieve cumulative/running sum through HANA graphical views?

$
0
0

Hi everyone,

 

 

I have requirement in my project to calculate cumulative total through graphical HANA views.

please help me on this.

 

 

for ex - we have a table recording sales amount and loss amount for each year  and we have to calculate total sales for each year.

 

formula for total sales :-

 

total sales = previous year total sales + Sales amt - loss amt.

     

year      sales Amt  loss amt  total sales

2001          100         50              50

2002          200         100           150

2003          150         100           200

2004          400         250           350

2006          300         150           500

2007          200         100           600

 

 

Please let me know how we can achieve it through graphical calculation view?

 

Thanks in Advance

Neeraj


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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