Step by step
- In a Windows edition that includes the Data Model, create a Products table with one row per ProductID and a Sales table with ProductID and Revenue.
- Add both tables to the workbook Data Model. Make sure both ProductID columns have the same data type.
- Create a relationship from Sales[ProductID] to the unique Products[ProductID]. Resolve duplicate product IDs in the Products table first.
- Create a PivotTable from the model. Put Products[Category] in Rows and the sum of Sales[Revenue] in Values. Reconcile the grand total with the sales source.
Excel Data Model: Pivot Table from Multiple Tables
Practice workspace
Correct the Headphones product ID to P02. Relate the sales product ID to the unique key in Products, then check revenue by category.
Lesson quiz
Answer three questions to see your level in this lesson.
