Months of stock cover: how long will inventory last?
Divide closing stock by average monthly units sold to show how many months each product’s inventory will last, a classic reorder KPI.
You will learn to
- Combine a closing balance with an average monthly flow
- Average over every month in view, including months with no sales
- Build a KPI step by step with variables
How it works
**Stock cover** answers the buyer's question: "if we keep selling at the usual pace, how many months will the stock on hand last?" It is the closing stock divided by the average units sold per month.
Be careful with the average. The usual pace should include quiet months: a product that sold 30 units over 12 months sells 2.5 a month, even if it sold nothing in four of them. Divide the units sold by the **number of months in view**, `DISTINCTCOUNT('Date'[YearMonth])`. An `AVERAGEX` over months skips months whose sales are blank and overstates the pace for slow sellers.
Variables make the KPI easy to read and check: one for the stock, one for the monthly pace, then a safe `DIVIDE`.
Practice it hands-on with a real data model and a live report that updates as you type.
Weeks of Sales in Stock =
VAR stock = [Closing Units]
VAR weeklyPace = DIVIDE([Total Quantity], DISTINCTCOUNT('Date'[Week Number]))
RETURN DIVIDE(stock, weeklyPace)