Demand Planning & Forecasting Analytics · Mission 11 of 30Medium

WMAPE

Weighted MAPE

The Brief

Lena ParkDemand Planning Managerdemand-planning

Compute WMAPE = SUM(ABS(error)) / SUM(actual) for STATISTICAL. Single number.

You'll practice

SUM

Tables & columns available

fact_actualsfact6 columns
ColumnTypeKey
actual_idINTPK
sku_idINTFK → dim_skus
location_idINTFK → dim_locations
period_dateTEXT
units_soldINT
revenueREAL
fact_forecastsfact7 columns
ColumnTypeKey
forecast_idINTPK
sku_idINTFK → dim_skus
location_idINTFK → dim_locations
version_idINTFK → dim_forecast_versions
forecast_period_dateTEXT
forecast_generated_dateTEXT
forecast_qtyINT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

WMAPE weights errors by volume — the proper aggregation is sum-of-absolute-errors over sum-of-actuals (not the average of MAPEs).

Hint 2

SUM(actual) denominator.

Hint 3

Force float.