I am creating a document where I look at the cover of stock in the warehouse. I want to created a figure based on the stock we currently have, plus the stock on the way, divided by the week before sales.
What I am trying to say is If On Order = 0 then Free Stock/Sum, otherwise ([On Order]+Free_stock)/Sum (if (InWeek (SI_Date, Today(), -1), [Quantity])) .
Any help is much appreciated.
May be this?
If([On Order] = 0, [Free Stock]/Sum, ([On Order]/Free_stock)/Sum(If(InWeek(SI_Date, Today(), -1), Quantity)))
My formula looks like this..
([on Order]+[Free_stock])/Sum (if (InWeek (SI_Date, Today(), -1), [Quantity]))
So, for instance in the attached screenshot, 6712 in stock + 5520 on order, LW sales were 1776 meaning total cover of 6.9 (6.88 without rounding)
Round((Stock+[On Order])/LW, 0.01)