Aggregate compare forecast and actual
Total forecast vs total actual across all SKUs (STATISTICAL version). Two numbers.
| Column | Type | Key |
|---|---|---|
| actual_id | INT | PK |
| sku_id | INT | FK → dim_skus |
| location_id | INT | FK → dim_locations |
| period_date | TEXT | |
| units_sold | INT | |
| revenue | REAL |
| Column | Type | Key |
|---|---|---|
| forecast_id | INT | PK |
| sku_id | INT | FK → dim_skus |
| location_id | INT | FK → dim_locations |
| version_id | INT | FK → dim_forecast_versions |
| forecast_period_date | TEXT | |
| forecast_generated_date | TEXT | |
| forecast_qty | INT |
Each hint you reveal reduces the XP you can earn. Try the query first.
Filter version 1.
SUM forecast and SUM actual separately.
Two columns, single row.