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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power BI can't determine the relationship between two or more fields'.

I've imported three tables into Power BI, have added relationships between them, and am now trying to add fields from the various tables to a table on the canvas.

The table names are named Employees, Job History, and Salary History.

Employees is joined to Job History using EmployeeID as a 1:Many relationship, and also to Salary History using EmployeeID on a 1:Many relationship.

I can add fields from the Employee table and EITHER the Salary History OR the Job History table to the table on the report canvas. However, if I try to add fields from all three tables, I'm seeing the error 'Can't display the data because Power BI can't determine the relationship between two or more fields'.

Could anyone advise where I'm going wrong? Many thanks.

1 REPLY 1
lbendlin
Super User
Super User

You have one dimension (Employees) and two facts ( Jobs and Salaries).  If you add a field from the dimension first (like employee name) then you can add fields from both facts.  But if you add a field from Jobs first, and then try to add fields from Salaries then you will get your error as there is no relationship between the two facts (and there shouldn't be one).

 

Always use the dimension field as the first field.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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