# Power BI reproduction guide

The completed website dashboard is native to the website, not a Power BI report. No PBIX or embedded Power BI report is included.

Import data/stores.csv, products.csv, suppliers.csv, daily_inventory.csv, daily_demand.csv and purchase_orders.csv. Add a Date dimension for January 1–March 1, 2026. Use dimension-to-fact one-to-many relationships; never fact-to-fact joins. Label every page synthetic and rename observed-demand fields to generated demand in report labels.

## Core measures
```dax
Fulfilled Units = SUM(daily_inventory[sales_units])
Synthetic Demand = SUM(daily_demand[observed_demand_units])
Modeled Unmet Units = SUM(daily_demand[simulated_unmet_demand_units])
Fill Rate = DIVIDE([Fulfilled Units], [Synthetic Demand])
Stockout Days = COUNTROWS(FILTER(daily_inventory, daily_inventory[observed_stockout_flag] = TRUE()))
Stockout Rate = DIVIDE([Stockout Days], COUNTROWS(daily_inventory))
Inventory Value = SUMX(daily_inventory, daily_inventory[closing_inventory] * RELATED(products[unit_cost]))
Average Daily Inventory = DIVIDE([Inventory Value], DISTINCTCOUNT('Date'[Date]))
COGS = SUMX(daily_inventory, daily_inventory[sales_units] * RELATED(products[unit_cost]))
Period Turnover = DIVIDE([COGS], [Average Daily Inventory])
Unmet Revenue Exposure = SUMX(daily_demand, daily_demand[simulated_unmet_demand_units] * RELATED(products[selling_price]))
```
Use percentages for fill and stockout measures. Date filters must cover the intended observation window. Check full-period values against category_summary.csv. Import policy_comparison.csv separately; never join scenario summaries to daily baseline facts.

## Four report pages
1. Executive inventory: unit fill rate, inventory at cost, daily demand and fulfilled units.
2. Stockout analysis: store/category rates and modeled revenue exposure ranking.
3. Working capital: period turnover and final-day days of supply from inventory_risk.csv.
4. Policy comparison: held-out costs, fill rates and robustness.csv.

No receipt-age, physical-capacity optimization, lost-profit or net-savings result is supplied. This guide is a rebuild instruction, not evidence that Power BI was executed.
