Demand Planning & Forecasting Analytics · Mission 8 of 30Easy

Bias by category

Signed mean error

The Brief

Devi IyerDemand Analystdemand-planning

Forecast bias by category (STATISTICAL): AVG(forecast - actual). Show category and bias.

You'll practice

AVG

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
dim_skusdim7 columns
ColumnTypeKey
sku_idINTPK
sku_codeTEXT
sku_nameTEXT
categoryTEXT
lifecycleTEXT
abc_classTEXT
xyz_classTEXT

Hints (3)

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

Hint 1

Bias is the signed average of forecast minus actual. Roll it up to category by joining the SKU dim.

Hint 2

Filter version 1.

Hint 3

AVG(forecast - actual).