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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors