cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Worldbreaker Regular Visitor
Regular Visitor

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

Accepted Solutions
SuraMan Regular Visitor
Regular Visitor

Re: Multiple connecting relationships

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 Regular Visitor
Regular Visitor

Re: Multiple connecting relationships

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

SuraMan Regular Visitor
Regular Visitor

Re: Multiple connecting relationships

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/

 

 

Worldbreaker Regular Visitor
Regular Visitor

Re: Multiple connecting relationships

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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 55 members 1,023 guests
Please welcome our newest community members: