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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
Resident Rockstar
Resident Rockstar

@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
Resident Rockstar
Resident Rockstar

@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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.