You are on page 1of 6

Customerid Name Productid

100 Ali A01


101 Voon A02
102 Lee A01
103 James A02
104 Kong A01
105 Sun A03

How to add relationship?


*Require 2 tables minimum to define relationship with same primary id/name, See sample Name
relationship

Join 2 tables using customer and product


i) Add customer data to data model
ii) Add product data at worksheet Product to data model
1) Powerpivot tab® Manage®Diagram view
2) In the diagram drag Productid from Customer table to Productid from Product table

Practical exercise-Advance
1) Joined owner name from Tom table to owner name from Owner table and joined owner name from Jerr
2) Results are shown as below:-
d/name, See sample Name

from Product table Use relationship to Join 2 tables

d joined owner name from Jerry table to owner name from Owner table
Productid ProductName
A01 Aircond
A02 TV
A03 Telephone
Tom id no Name Owner name
T001 Tom Warner Brothers
Jerry id no Name Owner name
J001 Jerry Warner Brothers
Owner id Owner Name Owner Gender Owner Address
W001 Warner Brothers Male Hollywood

You might also like