Hi
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 |
A | Pur-1 | 5 | 18 | 1 | 5 | 5 |
A | Pur-2 | 14 | 18 | 2 | 19 | 13 |
| | | | | | |
B | Pur-3 | 2 | 0 | 1 | 2 | 0 |
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.
please help.