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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MikeSwe
Regular Visitor

Help with multiple Power BI relations between the same table

Hi,

 

I am completely new to Power BI and after several days of searching online and experementing I have not been able to solve this and turn to this community for help.

 

I have a SharePoint list containing user information, e.g.

UserIDUserName
10Person A
20Person B
30Person C

 

Another SharePoint list containing information of various projects, e.g.

ProjectNameDescriptionProjectManagerIDProjectLeadID
Project 1Text...1030
Project 2Text...2030
Project 3Text...2020

 

In the Power BI report that I am trying to create I need to display the name of both the ProjectManager and the ProjectLead.

 

By using a relationship between the two lists I have managed to display the name of the Project Manager for each project when selecting it with the slicing tool. However, since I cannot have two active relationships between the two tables at the same time I have created an inactive relationship that I try to use in a measure with the help of USERELATIONSHIP but cannot get this to work.

 

Would anyone know the correct syntax for CALCULATE and USERELATIONSHIP to get both the name of the Project Manager and the Project Lead? Alternatively if there is another and better way to achieve the same?

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @MikeSwe 

 

Download sample PBIX file

 

You can create 2 measures to return the names

 

 

Project Lead = CALCULATE(MAX('Users'[UserName]), FILTER('Users', SELECTEDVALUE(Projects[ProjectLeadID]) = 'Users'[UserID]))

 

 

 

Project Manager = CALCULATE(MAX('Users'[UserName]), FILTER('Users', SELECTEDVALUE(Projects[ProjectManagerID]) = 'Users'[UserID]))

 

 

proj.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @MikeSwe 

 

Download sample PBIX file

 

You can create 2 measures to return the names

 

 

Project Lead = CALCULATE(MAX('Users'[UserName]), FILTER('Users', SELECTEDVALUE(Projects[ProjectLeadID]) = 'Users'[UserID]))

 

 

 

Project Manager = CALCULATE(MAX('Users'[UserName]), FILTER('Users', SELECTEDVALUE(Projects[ProjectManagerID]) = 'Users'[UserID]))

 

 

proj.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thank you very much, it worked perfectly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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