# Methodology: Weekly Supply Chain Scorecard

One page a week: each KPI this week, last week, the change, the average of the 4 weeks before, and a status. Exceptions that need a decision sit at the top. Every definition lives on the Definitions tab so weeks compare like for like.

## Weeks

```
Week ending (any date d) = d + MOD(week-end weekday - WEEKDAY(d), 7)     Sunday = 1, Saturday = 7
This week                = the latest week in the Sales or Inventory data
Last week                = the week before
4-week average           = average of the KPI over the 4 weeks before this week (fewer if the data is shorter)
                           This week is never part of its own average.
```

Sales and inventory are grouped by their own date, shipments by the week they **shipped**, PO lines by the week they were **received**.

## KPIs (KPI_Trend, one row per week)

```
Net revenue          = sum of net revenue in the week, all channels
Units sold           = sum of units in the week
Inventory at cost    = sum over all locations of units on hand x landed cost     (blank if no snapshot that week)
Run rate             = units sold in the last N weeks (cover_basis_weeks, default 4) / number of those weeks in the data
Weeks of cover       = units on hand / run rate                                  (excludes open POs)
Active SKU           = sold at least 1 unit in the last N weeks (active_weeks, default 8)
In-stock rate        = active SKUs with on hand >= in_stock_min (all locations combined) / active SKUs
Sell-through         = units sold in the week / (units sold in the week + units on hand at week end)
Ship-by used         = ship-by date if given, else order date + ship_sla_days
On-time ship         = orders shipped in the week with ship date <= ship-by used / orders shipped in the week
Cost per order       = fulfillment cost of orders shipped in the week / orders in the week that have a cost
PO on-time           = PO lines received in the week on or before original due date + po_tolerance_days / lines received
```

## Status (Scorecard, live formula)

Applied in order:

1. No value this week → **No data**
2. A target is set on the Definitions tab:
   - Better when *higher* → **On target** if this week ≥ target, else **Below target**
   - Better when *lower* → **On target** if this week ≤ target, else **Above target**
3. No earlier weeks → **No history**
4. Compare with the 4-week average, using the alert threshold:
   - % KPIs (in-stock, sell-through, on-time ship, PO on-time): threshold = `alert_pts` (default 3 points)
   - $ and count KPIs: threshold = `alert_pct` (default 10%) x |4-week average|; cost per order uses `alert_cost`
   - More than the threshold the good way → **Better than 4-wk avg**; the bad way → **Worse than 4-wk avg**; otherwise **In line with 4-wk avg**
   - KPIs marked *neutral* (weeks of cover, inventory $) show **Up / Down vs 4-wk avg** and never go on the decision list on their own.

## SKU flags (SKU_Status, this week)

```
Cover incl. open POs = (on hand + units on open PO lines) / SKU run rate
Out of stock         = active and on hand < in_stock_min
Low cover            = (not out of stock) run rate > 0 and cover incl. open POs < lead time + buffer
Overstock            = weeks of cover > overstock threshold and excess at cost >= min_exception_value
Excess units         = on hand - overstock threshold x run rate   (all of it if the SKU has no sales)
Excess at cost       = excess units x (inventory value / on hand)
```

## Decision list (Scorecard top, as run)

| Type | When | Ranked by |
|---|---|---|
| Out of stock | SKU flag | Average weekly revenue at risk |
| Low cover | SKU flag | Average weekly revenue |
| Late PO | Open line, this week's end > original due date + grace | Open units x unit cost |
| KPI | Status is Worse than 4-wk avg, Below target or Above target | n/a |
| Overstock | SKU flag | Excess at cost |

The order of the types follows the brand's priority:

| Priority | Order |
|---|---|
| Availability | Out of stock, Low cover, Late PO, KPI, Overstock |
| Cash | Overstock, Out of stock, Late PO, Low cover, KPI |
| Cost | KPI, Out of stock, Late PO, Low cover, Overstock |
| Balanced | Out of stock, Late PO, Low cover, KPI, Overstock |

## How the brand's answers change thresholds

| Answer | Effect |
|---|---|
| Week ends Sunday / Saturday | How every date is rolled into a week |
| Lead time (weeks) | Low cover below lead time + buffer (default 2 weeks) |
| Priority = Availability | Buffer +2 weeks; out-of-stock and low-cover items first |
| Priority = Cash | Overstock threshold capped at 20 weeks; overstock first |
| Priority = Cost | Cost-per-order alert threshold halved; KPI moves first |
| Definitions confirmed = Not yet | Memo says so; the skill walks the brand through the Definitions tab before relying on the numbers |

## Glossary

- **Run rate**: average weekly units over the last few weeks. It drives weeks of cover.
- **Weeks of cover**: how many weeks the stock on hand lasts at the run rate.
- **Sell-through**: the share of available units that sold this week. Higher means stock is moving.
- **In-stock rate**: the share of SKUs customers could actually buy at the end of the week.
- **On-time ship**: orders that left the warehouse by the promised day.
- **PO on-time**: supplier deliveries that arrived by the date first promised.
