Four business questions answered by building a star schema: loading separate CSV tables, creating relationships, merging queries, and visualising connected data.
customers.csv, click Load. Repeat for products.csv, staff.csv, orders.csv. Confirm all four appear in the Data pane (right side).customers. On the Home ribbon → Use First Row as Headers. Repeat for all four tables.orders to each of the three lookup tables.orders.CustomerID → customers.CustomerID
orders.ProductID → products.ProductID
orders.StaffID → staff.StaffID
orders table to create it manually.
orders in the Queries panel (left).orders. From the dropdown, select products as the second table. Click ProductID in the orders preview, then click ProductID in the products preview to link them. Set Join Kind to Left Outer. Click OK.products column appears at the end of orders. Click the expand icon (⇔) in the column header. In the checklist, tick only Price. Untick "Use original column name as prefix". Click OK.QTY column header and the Price column header to select both. Right-click → Transform → Product. Power Query creates a new column with QTY × Price for each row.Total Sales. Click Close & Apply.
orders table in the Data pane. You should now see Price, QTY, and Total Sales as columns.staff → StaffName into the Columns field well. Then drag orders → QTY and orders → Total Sales into Columns. Power BI automatically sums both.Total Sales column header in the visual to sort descending — highest revenue staff at the top.staff → StaffName to Y-axis. Drag orders → Total Sales to X-axis. The chart auto-sorts bars longest first.products, the revenue calculation comes from orders. This visual is only possible because of the relationship we established in Model View. It directly answers the question: "Where should we focus our inventory investment?"
products → ProductName to the X-axis field well.orders → Total Sales to the Y-axis field well. Power BI sums all order revenue for each product.