Demand Planning & Forecasting Analytics · Mission 10 of 30Easy

Best/worst forecast accuracy

Top/bottom N by metric

The Brief

Lena ParkDemand Planning Managerdemand-planning

Top 5 best and bottom 5 worst SKUs by MAPE. Output 10 rows total.

You'll practice

LIMIT

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

Two halves stitched together: pick the 5 most accurate and the 5 least accurate SKUs and combine into one result set.

Hint 2

ORDER BY mape ASC and DESC.

Hint 3

sku_id and mape.