Every shopper, online order and delivery truck you see in the store is an event. Each one lands in an event log and rolls up into the scoreboard the moment it happens. Tap a zone or a salesperson to drill in.
Fictional shop. All products, people and numbers are simulated in your browser.The store and the dashboard never talk to each other directly. Both read from the same event log, the way a Power BI report and an operational app would read from one semantic model.
A minute-by-minute simulator draws shoppers, web orders and supplier deliveries, weighted toward an afternoon peak.
Every action writes one row to an append-only event log: sale, web order, PO, receipt, shipment.
Products, reps and purchase orders act as dimensions. Stock is derived: opening plus received minus sold.
Three.js draws the store from the model; the scoreboard computes its measures from the same rows.
-- the measures behind the scoreboard, written as they would be in a semantic model
Revenue Today = SUMX(FILTER(event_log, event_log[type] IN {"sale","web"} && event_log[date] = TODAY()), event_log[amount])
On Hand = [Opening Stock] + SUM(receipts[qty]) - SUM(sales[qty])
Reorder Trigger = IF([On Hand] + [On Order] <= dim_product[min_stock], dim_product[reorder_qty])
vs Yesterday % = DIVIDE([Revenue Today] - [Revenue Yesterday Same Time], [Revenue Yesterday Same Time])
Single HTML file: Three.js and plain JavaScript, no backend. Built with Claude Code by Robert Engstrom.