Forum Discussion

Rjesak's avatar
Rjesak
Helper I
6 years ago

Build a table relationship using OR

I have a table of services, a table of clients, and a table of contacts. My contacts are joined either to the client table OR the service table. I'm trying to figure out how to build this relationship in Power BI.

 

service to client is a one to one relationship

client to contacts is a one to many relationship

service to contacts is a one to many relationship

 

Here's a stripped down version of the tables:

Services
service_seqService Typeclient_seq
111aaa999
222bbb888
333aaa777

 

Client
client_seqclient nameclient address
111Mr. AB street
222Mr. BC street
333Mrs. CD street

 

Contact
service_seqclient_seqcontact info
111 Dr. A
 888Dr. B
222 Dr. C
222 Dr. D
 777Dr. E

 

Any thoughts?