Relate two tables in the Data Model

Analyze sales by product category without repeating category information on each sale.

Step by step

  1. 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.
  2. Add both tables to the workbook Data Model. Make sure both ProductID columns have the same data type.
  3. Create a relationship from Sales[ProductID] to the unique Products[ProductID]. Resolve duplicate product IDs in the Products table first.
  4. 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.
Microsoft reference

Search ExcelTutor