Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Calculation of Last 3 months and using in the calculation in HANA Calculation view

$
0
0

Hi,

 

We have a scenario in HANA modelling where we are calculating No. of days by dividing (Current Inventory value divide by Last 3 months Sales) * 91. Can some one help in getting this output from a calculation view. The data in the cube is by Month and Year.

 

CalmonthCalYearInventorySales
102014981111
112014971212
122014961213
120151001000
220151231100
320151331240
420151321320
520151241430
620151541540

 

I would like to get these results as output of the calculation view.

 

CalmonthCalYearNo.ofDays
12015=100*91/(1000+1213+1212)
22015=123 *91/(1100+1000+1213)
32015=133 *91/(1240+1100+1000)
42015=132 *91/(1320+1240+1100)
52015=124 *91/(1430+1320+1240

Viewing all articles
Browse latest Browse all 5653

Trending Articles



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