I had posted previously, and John supplied me with some code that really helped, but I believe I need some further assistance…
Scenario:
I am trying to calculate the number of week's stock I have for each product based on the stock available against the forecast.
The forecast is extracted from a 52 week array, in a field called Qty. Within a table called Inventory, I have fields for Available Stock, Required, On Hand and On Order. These need to be calculated into my available stock.
The forecast is in calendar months, years 2008 - 2010 in 52 weeks. I need QlikView to work out what current week we are in, as I need it to count down from there. I then need QlikView to countdown my stock levels, updating the amount for each week until 0, showing what week it will run out.
The inventory table is a standard figure which is updated real time (no time period).