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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MagicMind
Advocate I
Advocate I

Resolve - Can't determine relationships between the fields

I have 4 tables with the following relationships and slicers directions :

 

  • A - B : 1 to Many / Bidirectional
  • B - C : 1 to Many / Bidirectional 
  • B - D : 1 to Many / Bidirectional

When I try to to create a table visual with a column from table A and table D, the visual says :

Can't determine relationships between the fields.

How to resolve this?

 

1 ACCEPTED SOLUTION
AmiraBedh
Most Valuable Professional
Most Valuable Professional

I recommend to change bidirectional relationships to single direction where possible, especially if the bidirectional filtering is not essential for your analysis.

In the contrary case, you can create an explicit measures that use DAX to define the exact calculation and filtering behavior you need. This allows you to manually control the context propagation and filter application across your tables, bypassing some of the ambiguity that automatic filtering can introduce.

For example, if you want to create a measure that aggregates data from table D based on filters applied to table A, you might use a DAX formula that explicitly navigates the relationships:

 

Measure = CALCULATE(SUM(TableD[SomeColumn]), USERELATIONSHIP(TableA[KeyColumn], TableB[ForeignKeyColumn]), USERELATIONSHIP(TableB[KeyColumn], TableD[ForeignKeyColumn]))

Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

2 REPLIES 2
AmiraBedh
Most Valuable Professional
Most Valuable Professional

I recommend to change bidirectional relationships to single direction where possible, especially if the bidirectional filtering is not essential for your analysis.

In the contrary case, you can create an explicit measures that use DAX to define the exact calculation and filtering behavior you need. This allows you to manually control the context propagation and filter application across your tables, bypassing some of the ambiguity that automatic filtering can introduce.

For example, if you want to create a measure that aggregates data from table D based on filters applied to table A, you might use a DAX formula that explicitly navigates the relationships:

 

Measure = CALCULATE(SUM(TableD[SomeColumn]), USERELATIONSHIP(TableA[KeyColumn], TableB[ForeignKeyColumn]), USERELATIONSHIP(TableB[KeyColumn], TableD[ForeignKeyColumn]))

Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
Uzi2019
Super User
Super User

Hi @MagicMind 
With the relationship you created, you can select correct values from Table A and Table B or Table C and Table B to the “table” chart, but when you add values from the other table, it returns an error like “it can’t determine the relationship between two or more fields”.

For example, for 1 from Table A, it can relate 1 or 2 from Table B, since 1 from Table B can also relate 1 or 2 from Table C, so for 1 from Table A, it can’t determine whether 1 or 2 from Table C should be refer to

Table A            Table B           Table C

1                             1                    1,2

1                             2                    1,2

To get which you want as shown in the picture,

You can create a new table with the formula

Table = CROSSJOIN(TableA,TableB,TableC)

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.