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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

how do I properly create a relationship between 2 tables

I am having a problem with the relationship with 2 tables.  I have one table and I created a new table by copying and pasting the original table and named it differently; As I will be using it differently.  KVC1 AND KVC2.  KVC1(7 days of data) and the KVC2(365 days of data)

Now the problem is the relationship.  I wanted to do which is common sense to me the account No. fields in each, but it gives me the followng message:  

This relationship has cardinality Many-Many.  This chould only be used if it is expected that neither column (Account No and Account No) contains unique values... or The cardinality you selected isn't valid for this relationship.

 

How do I fix this relationship?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi  @Anonymous ,

 

According to the error message: there is no shared dimension between the two tables, and the fields of the join relationship do not have unique values.

Try adding a calculated table and using many-to-one relationship:

Solved: Create join table for many to many relationship DA... - Microsoft Fabric Community

https://radacad.com/creating-a-shared-dimension-in-power-bi-using-power-query-basics-and-foundations-of-modeling

Solved: Re: Unique values from two columns - Microsoft Fabric Community

 

Best Regards,

Liu Yang

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

View solution in original post

lbendlin
Super User
Super User

You need to create a proper Account dimension table (with unique Account No values) and then comtrol your two tables through it.

 

Avoid linking fact tables directly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thank you so much!

lbendlin
Super User
Super User

You need to create a proper Account dimension table (with unique Account No values) and then comtrol your two tables through it.

 

Avoid linking fact tables directly.

Anonymous
Not applicable

This helped.  Thanks.

Anonymous
Not applicable

Hi  @Anonymous ,

 

According to the error message: there is no shared dimension between the two tables, and the fields of the join relationship do not have unique values.

Try adding a calculated table and using many-to-one relationship:

Solved: Create join table for many to many relationship DA... - Microsoft Fabric Community

https://radacad.com/creating-a-shared-dimension-in-power-bi-using-power-query-basics-and-foundations-of-modeling

Solved: Re: Unique values from two columns - Microsoft Fabric Community

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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