Skip to Content
0
Former Member
Jan 03, 2008 at 12:50 PM

subsequent use of cumulated value in query

22 Views

Hi All,

We are using BEx Query Designer to create a query having one formula variable “Stock on Hand” as a cumulated value (along the columns).Now we need to use this cumulated value in another formula variable. Is this possible to do? If not could you please suggest an alternate for the same?

Stock on hand (for any given week) = (Total Receipts – Total Demand) + Stock on Hand (for previous week).

Inv. Carrying Cost (for any given week) = Stock on hand (cumulated values as above) * Per unit inv. cost

Data for Total Receipts, Total Demand and Per unit Inv. Cost is present in the infocube at daily level. A sample report template has been given below:

Product Location Week W1 W2 W3

P1 L1 Total Demand 10 10 10

Total Receipts 20 0 5

Stock on Hand 10 0 -10

Per unit Inv. Cost 2 2 2

Inv. Carrying cost 20 0 -20

Points assigned in advance for your replies 😊

Regards,

Bansi.