Short answer: forecast error is measured per item and period as actual - forecast. MAPE (mean absolute percentage error) averages |error| / actual over items: easy to explain, but small items with big percentage errors dominate it, and it breaks when actuals are zero. WAPE (weighted absolute percentage error) = Σ |error| / Σ actual, which weights items by volume; forecast accuracy = 1 - WAPE. Bias = Σ (forecast - actual) / Σ actual shows whether you forecast too high (positive) or too low (negative) on average. Report accuracy and bias together.
Accuracy says how far off the forecast is; bias says in which direction. A forecast that is always 10% too high fills warehouses; one 10% too low causes stockouts.
How do the measures compare?
| Product | Forecast | Actual | Error | Absolute error | Absolute % error |
|---|---|---|---|---|---|
| Bike | 1,000 | 900 | -100 | 100 | 11.1% |
| Helmet | 500 | 550 | 50 | 50 | 9.1% |
| Bell | 20 | 5 | -15 | 15 | 300.0% |
| Total | 1,520 | 1,455 | -65 | 165 |
- MAPE = (11.1 + 9.1 + 300.0) / 3 = 106.7%: the bell, 5 units, makes the forecast look useless.
- WAPE = 165 / 1,455 = 11.3%, accuracy 88.7%: weighted by volume, the forecast is decent.
- Bias = (1,520 - 1,455) / 1,455 = +4.5%: slightly too high overall.
Bikes are forecast 9% too high every month: an adjustment, not a new model, fixes much of that.
What is the DAX?
Forecast and Actual tables at the same grain (Product, Month), both related to Product and Date:
Forecast Qty = SUM ( Forecast[Quantity] )
Actual Qty = SUM ( Sales[Quantity] )
Abs Error =
SUMX (
CROSSJOIN ( VALUES ( 'Product'[Product] ), VALUES ( 'Date'[Year Month] ) ),
ABS ( [Actual Qty] - [Forecast Qty] )
)
WAPE = DIVIDE ( [Abs Error], [Actual Qty] )
Forecast Accuracy = 1 - [WAPE]
Bias = DIVIDE ( [Forecast Qty] - [Actual Qty], [Actual Qty] )
MAPE =
AVERAGEX (
FILTER (
CROSSJOIN ( VALUES ( 'Product'[Product] ), VALUES ( 'Date'[Year Month] ) ),
[Actual Qty] > 0
),
DIVIDE ( ABS ( [Actual Qty] - [Forecast Qty] ), [Actual Qty] )
)The absolute error must be computed at the forecast grain (product and month) and then summed: computed on totals, errors of opposite sign cancel and accuracy looks perfect. CROSSJOIN of the two grains does that.
Which forecast should you measure?
Measure the forecast as it was when decisions were made, for example the forecast made one month before (lag 1), not the latest update. Store forecast versions with a Version or Created Month column and filter on the lag you want.
What goes wrong?
- Errors on totals. Over and under forecasts cancel; compute at the item grain.
- MAPE with small or zero actuals. Use WAPE; MAPE skips or explodes on zeros.
- Accuracy below zero. 1 - WAPE is negative when errors exceed actuals; cap it or report WAPE.
- Latest forecast. Measures nothing useful; measure the lag that drives purchasing.
Where can you check this?
- Microsoft Learn: CROSSJOIN function (DAX)
- Microsoft Learn: AVERAGEX function (DAX)
- Microsoft Learn: ABS function (DAX)
Where do you start?
Store each month's forecast with its creation month, and report WAPE accuracy and bias by product family at lag 1. Employee turnover starts the people KPIs.