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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Worldbreaker
Helper I
Helper I

Multiple connecting relationships

I have 2 tables

 

that need relationships

 

I have an active relationship between the PMPE(Resource) as the Owner(Resource_Data_Table) that would show all projects made by the PMPE as the Owner.

 

the problem is, I need another relationship between the PMPE(Resource) as the Platform Engineer(Resource_Data_Table) that would show all projects by the PMPE as the Platform Engineer.

 

here's a screenshot of my tables:Relationships.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I also created a bridge table to work around the many to many issue with power bi.

 

do you guys know how I can have 2 active relationships? or at least a workaround for this?

 

 

Thanks a lot! 

1 ACCEPTED SOLUTION
SuraMan
Advocate II
Advocate II

Hello,

 

What you are trying to do is similar to handling role playing dimensions within power bi which is not possible due to the limitation of only 1 active join (relationship)

 

The ugly solution is to import "Resource_Data_Table" twice with different names into Power BI desktop, as if they are separate tables. Then you can an have active relationship to each table

 

I came across the following alternative method, in which a table can be 'cloned' within power bi, so you can clone Resource_Data_Table to a different name and use it for the 2nd join (relationship)

 

http://biinsight.com/role-playing-dimensions-in-power-bi/

 

View solution in original post

3 REPLIES 3
SuraMan
Advocate II
Advocate II

The article below has another method if the values from the two joins (relationships) need to appear side-by-side. It involves writing a DAX expression. In short, DAX expressions can use an inactive relationship to fetch values, which is what happening here

 

 

http://biinsight.com/side-by-side-role-playing-dimensions-in-power-bi/

 

 

SuraMan
Advocate II
Advocate II

Hello,

 

What you are trying to do is similar to handling role playing dimensions within power bi which is not possible due to the limitation of only 1 active join (relationship)

 

The ugly solution is to import "Resource_Data_Table" twice with different names into Power BI desktop, as if they are separate tables. Then you can an have active relationship to each table

 

I came across the following alternative method, in which a table can be 'cloned' within power bi, so you can clone Resource_Data_Table to a different name and use it for the 2nd join (relationship)

 

http://biinsight.com/role-playing-dimensions-in-power-bi/

 

the limitation is truly a hindrance to what we want to show.

 

what I just did is to create a report in excel that shows the Platform Engineers without the Owners.

 

and uploaded it in Power BI

 

then connected to the bridge table to create the relationship with the other tables.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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