Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Calculation View: Calculations on different rows

$
0
0

Thanks Chandan. I understand its possible by SQL script, but how this can be achieve via Graphical view.

 

For instance, please see the below simple scenario

 

Emp_ID    Name     Salary      Month       Quarter    

 

0001          ABC           X        Jan-16       0012016

 

0001          ABC           Y         Apr-16      0022016

 

 

Now I need to find out Quarter by Quarter growth of employee and formula for the same will be like:

 

Calculated Column   =  (Employee current quarter Salary(Y)  /  (Employee last Quarter Salary (X) -  1 ) * 100

 

Note:  Table can have N numbers of unique employees.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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