# Multi-table modeling

> Import every sheet of a workbook at once and Golden detects how the tables join, marks facts and dimensions, and keeps the model ready to chart.

Use cases · 7 min read · Updated 2026-11-26

Order systems export a workbook, not a single table: orders on one sheet, line items on another, customers and products on their own. Flattening that by hand is slow and easy to get wrong. Golden keeps the tables separate and figures out how they relate.

![The Golden data model for northstar-orders: products and regions marked DIM, order_items and orders marked FACT, customers marked DIM, joined by one-to-many links, above a list of 4 relationships such as order_items Product ID = products Product ID](https://app.goldenanalytics.com/api/help/public-image?object=2862a43c-9f01-4872-8107-290dd3859179%2F1795721197676-02-data-model.png)

### The question

Marcus runs revenue operations at an office supply company. Sales exports its order system as a five-sheet workbook. He wants to know which customer segment drives growth and which product lines make money, without building one giant spreadsheet and without double counting when tables join.

If you're stitching sheets together with VLOOKUP before you can analyze anything, start here.

### The data

The sample file is `northstar-orders.xlsx`, with five sheets:

| Sheet | Rows | Key columns | Other columns |
| --- | --- | --- | --- |
| orders | 4,000 | Order ID, Customer ID, Region ID | Order Date, Status, Ship Days |
| order_items | 11,400 | Order ID, Product ID | Quantity, Unit Price, Discount |
| customers | 800 | Customer ID | Name, Segment, Industry, State |
| products | 122 | Product ID | Product Name, Category, Sub-Category, List Price, Cost |
| regions | 5 | Region ID | Region, Manager |

### Build it

1. On Home, click **Start an analysis**, open **Files** and drop in `northstar-orders.xlsx`.
2. Golden lists every sheet in **Select sheet(s) to import**, with a preview of the one you click. Check **Select all**, then click **Import 5 sheets**.

![Select sheet(s) to import: 5 sheets found in northstar-orders.xlsx, all five checked (orders, order_items, customers, products, regions), a preview of the orders sheet, and the Import 5 sheets button](https://app.goldenanalytics.com/api/help/public-image?object=2862a43c-9f01-4872-8107-290dd3859179%2F1795721197877-01-select-sheets.png)

1. Golden opens the **Data model**. It has already found the four relationships and marked each table as a fact or a dimension.

### What you'll find

### The relationships are already there

The model shows each table as a card, tagged **FACT** (order_items, orders) or **DIM** (products, regions, customers), with the join cardinality on each link. The list below spells out every relationship:

| From | Field | To | Cardinality |
| --- | --- | --- | --- |
| order_items | Product ID | products | N:1 |
| order_items | Order ID | orders | N:1 |
| orders | Customer ID | customers | N:1 |
| orders | Region ID | regions | N:1 |

Use **Add relationship** to add one Golden missed, the pencil to edit one, and **Detect** to look again after you change the data.

### Why this matters: no double counting

Orders have many line items. If you flatten the workbook into one row per item, an order's **Ship Days** repeats on every line, and averaging it gives bigger orders more weight. Keeping orders and order_items as separate tables, joined by the model, lets an order-level measure stay at the order level.

> **Tip:** Name your key columns the same way across sheets (Customer ID in both orders and customers). It's what Golden uses to detect the joins.

### Make it yours

Any multi-sheet Excel file works, as do several CSVs added to the same analysis with **Add data**. After import, check the relationship list before you build charts. One wrong join changes every number downstream.

### FAQ

**Do I have to import every sheet?** No. Check only the sheets you need. You can add more later with **Add data**.

**What do FACT and DIM mean?** A fact table holds events you count and sum (orders, line items). A dimension describes them (customers, products, regions).

**Can I share the model with my team?** Yes. Click **Save as shared dataset** so others can build on the same tables and relationships.

Source: https://goldenanalytics.com/docs/use-case-multi-table-modeling
