Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kbirchmore
New Member

Defining Relationships with Multiple columns in the primary and foreign keys - Oracle Database

I am working with an oracle database and pulled in my data tables. Now I am trying to setup the relationships to the tables using the primary keys/foreign constraints on the tables.  Power BI did not detect the primary keys like other tools I have used to query (MS Access, Crystal Reports, etc) so I tried to define these in Power BI but I only seem to be able to create a relationship on a single column and not multiple columns.  Am I missing something?  

 

Table 1

COMPANYID, SUBCOMPANYID - is the primary key

Table 2

COMPANYID, SUBCOMPANYID, CLAIMNO - is the primary key

 

I want to create the relationship between these two tables using the columns COMPANYID and SUBCOMPANYID.

 

Kris

 

 

 

1 ACCEPTED SOLUTION
rajulshah
Super User
Super User

@kbirchmore ,

 

In Power BI, you can have only one active relationship between 2 tables.
You can refer to the below article:
https://learn.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive

View solution in original post

1 REPLY 1
rajulshah
Super User
Super User

@kbirchmore ,

 

In Power BI, you can have only one active relationship between 2 tables.
You can refer to the below article:
https://learn.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.