i have the following data in Qlikview pivot. i have the data till cumulative column.
|Item No.||Document No.||Receipt Qty||Current Stock||ROW No.()||Cumulative||Stock|
I want to calculate the transactions that form part of stock. for eg. For item A, the Total stock is 18, so 5 qty of Pur-1 and 13 Qty of Pur-2 are required for stock.
for item B, since stock is Zero, none of the Receipts should be considered.
Can anyone help in writing the expression that claculates the stock as given above.