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
jch
Employee
Employee

Can't determine relationship between fields

I have 2 tables:

1. Table readin contains a calculated field :

Actual Date = if(SEARCH("/",readin[Actual], 1, -1) > 1,DATEVALUE(readin[Actual]))
2. Table DimDate contains a date and associated categorical variables for charting. I also created this column:
DateKey = datevalue(DimDate[Date])

How come adding a relationship between these 2 fields throws the error Can't determine relationships between the fields?
 

jch_0-1623698388932.png

Thanks in advance

1 ACCEPTED SOLUTION

I appreciate your help on this. The answer ended up being

 

In a one-to-many relationship, you can only filter the relationship by table like table2, but not vice versa.

View solution in original post

5 REPLIES 5
v-eqin-msft
Community Support
Community Support

Hi @jch ,

 

Could you tell me if my post helps you a little? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Or please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Best Regards,
Eyelyn Qin

I appreciate your help on this. The answer ended up being

 

In a one-to-many relationship, you can only filter the relationship by table like table2, but not vice versa.

v-eqin-msft
Community Support
Community Support

Hi @jch ,

 

You are trying to use two or more fields from tables that are not related. You need to remove the unrelated fields from the visual and then create a relationship between the tables. Once you have done this change, you can add the fields back to the visual.

 

Refer to: 

Create and manage relationships in Power BI Desktop 

https://community.powerbi.com/t5/Desktop/Error-Can-t-determine-relationship-between-fields/m-p/90848...

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

parry2k
Super User
Super User

@jch what @TomMartens  suggested, but why you are adding DateKey column in Calendar table? What is the type of both the columns? Is it date?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

TomMartens
Super User
Super User

Hey  @jch ,

 

create a pbix file that contains sample data, but still reflects your data model. Upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data, share the xlsx as well.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.