Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
subathra
Partner - Contributor III
Partner - Contributor III

How can i find Stock Ageing for this scenario

Item,   Branch ,  Date  ,In_Qty  ,Out_Qty   ,Stock_Qty

ABC,   0A1,   1/1/2016,    10,    0,   10

ABC,    0A1,   4/1/2016,   0,      8,   -8

ABC,   0A1,   23/2/2016,  10,    4,    6

ABC,   0A1,   28/2/2016,   0,     2 ,   -2

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Subtract the date of entry of the stock from the current date.

Or perhaps this example can help you: SAP Stock Aging using the MSEG and MKPF tables


talk is cheap, supply exceeds demand
sushil353
Master II
Master II

Try this:

load Today()-Date(Date#(Date,'DD/MM/YYYY')) as AgeingDays,* inline

[

Item,   Branch ,  Date  ,In_Qty  ,Out_Qty   ,Stock_Qty

ABC,   0A1,   1/1/2016,    10,    0,   10

ABC,    0A1,   4/1/2016,   0,      8,   -8

ABC,   0A1,   23/2/2016,  10,    4,    6

ABC,   0A1,   28/2/2016,   0,     2 ,   -2

];

HTH

Sushil