A Power BI dashboard that draws every storage location of a distribution center where it physically sits, in an interactive 3D map. The report embeds its own custom visual (a .pbiviz built on Three.js), so it opens complete: nothing to import and no marketplace licence.
The data is generated sample data: 14,000 locations, 4 zones, 25 aisles. It is not read from any warehouse system.
- Where is stock, physically? Racks, boxes and aisles are drawn in 3D from real floor coordinates, not averaged into a bar.
- Where are my open slots? Switch to Open slots and every empty location lights up green.
- Which aisles are over 70%? A ranked table, and a red floor tile under every bay row above 70%.
- Which stock is old? Colour boxes by stock age, or slice to Over 180 days.
- What is this number? Every KPI shows its numerator and denominator, and the formula is printed on the card.
| 3D map | Drag to orbit, scroll to zoom, right-drag to pan. Zone and aisle labels. |
| Three views | Overview, Plan view (top-down heatmap for the director) and Aisle view (eye height, scroll to walk, previous/next aisle, for the floor supervisor). |
| Colour by | Fill rate (floor tile per bay row), Stock age, Open slots. |
| Hover and pin | Native Power BI tooltip on hover. Click a location or floor tile to pin a card with its fill by level. The click cross-filters the rest of the page. |
| Dropdown slicers | Zone, Aisle, Level, Stock age, Status. The 3D view, KPIs, charts, tables and text all follow them. |
| Dynamic text | A "This selection" card with five lines driven by the slicers. |
| Format pane | Slot width, slot depth, level height, heat colours, interface size. |
| Dim, never delete | A highlight from another visual dims racks instead of removing them, so the building keeps its shape. |
| Plan view, pinned bay row | Aisle view |
|---|---|
![]() |
![]() |
| Colour by stock age | Colour by open slots |
|---|---|
![]() |
![]() |
| Path | What |
|---|---|
WarehouseOccupancy.pbip |
The Power BI project. Open this. |
WarehouseOccupancy.Report/ |
The report (PBIR): one page, 5 slicers, 17 visuals, theme and canvas. The custom visual is embedded in CustomVisuals/. |
WarehouseOccupancy.SemanticModel/ |
The semantic model (TMDL): 5 tables (3 data, 2 measure) and every measure, each with a description. |
pbiviz/warehouse3D.pbiviz |
The visual on its own, to import into any report. |
Requires Power BI Desktop with PBIR support. Tested on 2.157.879.0.
- Clone the repo and open
WarehouseOccupancy.pbip. - Desktop shows Some of the tables have incomplete or no data. Click Refresh now, then save. The data is embedded in the model, so nothing connects to a source.
To use only the visual, import pbiviz/warehouse3D.pbiviz with Insert > More visuals > From a file.
One fact table plus two small slicer tables.
| Table | Grain | Notes |
|---|---|---|
Locations |
one row per storage location | Zone, Aisle, Bay Row, Bay, Level, Position, X m, Y m, Status, SKU, Units, Received Date, Stock Age Days, Age Band |
Stock Age Filter |
one row per age band | Disconnected slicer table |
Status Filter |
Filled, Open | Disconnected slicer table |
Stock age and Status are disconnected on purpose. If they filtered Locations rows, the empty slots would vanish from every denominator and a bay row holding 3 aged pallets would read 100% full. They narrow the Filled and Open measures with TREATAS, while Total Locations stays the denominator. The 3D map dims what does not match.
A bay row is 56 locations: 7 levels, 2 facing bays, 4 positions. An aisle has 10 bay rows. Levels run 00 (floor) to 60. Fill bands are under 30%, 30 to 70% and over 70%, and "over 70%" is strict everywhere.
| Zone | Aisles | Bay rows | Locations | Filled | Fill rate | Bay rows over 70% |
|---|---|---|---|---|---|---|
| Zone A | 6 | 60 | 3,360 | 1,526 | 45% | 6 |
| Zone B | 6 | 60 | 3,360 | 2,356 | 70% | 21 |
| Zone C | 7 | 70 | 3,920 | 520 | 13% | 0 |
| Zone D | 6 | 60 | 3,360 | 2,394 | 71% | 31 |
| Total | 25 | 250 | 14,000 | 6,796 | 49% | 58 |
Business measures live in _Measures and the SVG tiles in _SVG_Measures. Every measure carries a description, visible in Power BI and to Copilot.
Total Locations, Filled Locations, Open Slots, Fill Rate, Bay Rows, Bay Rows Over 70%, Avg Stock Age Days, Fill Rate Over 70%, Open Slots Over 70%, Fill Band Colour, Location Is Filled, Location Age Days, Units On Hand, Slicer Match, Scope Label, Most Open Aisle, Fullest Aisle, plus P1_*_SVG for the six KPI tiles and the selection card.
The visual draws one location per row, so it needs a table at that grain with floor coordinates. Without X and Y the map cannot be drawn.
| Role | Kind | Meaning |
|---|---|---|
| Location ID | grouping | one row per location |
| Zone, Aisle, Bay row, Bay, Level, Position | grouping | where it sits in the rack |
| X (m), Y (m) | grouping | slot centre on the floor, in metres |
| SKU | grouping | shown in the tooltip and card |
| Filled (0 or 1) | measure | must return 0, not blank, or empty locations drop out |
| Stock age (days) | measure | |
| Units | measure | |
| Slicer match (0 or 1) | measure | dims locations that do not match a slicer |
To swap the data in the PBIP, replace the Locations partition with a source that exposes the same columns.
The visual reads up to 30,000 locations. Past that it shows a notice that the map is cut off.
- Instancing. 14,000 locations draw as a handful of instanced meshes, with one extra mesh for empty slots that is hidden outside Open slots but still hoverable.
- Rebuild only when the data changes. Selecting a location and saving the view both echo back into Power BI's
update(). Geometry rebuilds only when the data changes. Colour mode and highlights recolour in place. - Render on demand. Idle draws one frame and stops, so a report screenshot is reproducible and an idle report costs nothing.
- No pointer lock. Desktop sandboxes custom visuals with scripts only, so orbit is a drag and every action has a click path.
- No network. The visual requests no privileges, and its bundle contains no
fetch,XMLHttpRequest,WebSocket,evalorinnerHTML.
- Tested on Power BI Desktop 2.157.879.0. Click behaviour inside Desktop (selection, cross-filtering, a table click dimming the racks) was checked in a sandboxed browser harness with real mouse input, not by hand in Desktop.
- WebGL is required. If a host cannot start it, the visual says so instead of showing an empty box.
- On Fill rate by level, a bar at 90% or more puts its label inside the red bar, where contrast is weak.
- A fresh clone has no data cache until you refresh once.
MIT. Bundled third-party code and its notices are in THIRD-PARTY-NOTICES.md. The faizaan.me logo in the page header is a brand mark and is not covered by the licence; replace it in WarehouseOccupancy.Report/StaticResources/RegisteredResources/warehouse_bg.svg if you fork.




