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
rihard505
Frequent Visitor

Copy of table has many-to-many, but the original table has one-to-many relationship

Hello!

Why does the original table has a one-to-many relationship with another table, but the copy of the original table has many-to-many relationship with the other table with the same columns used for connection?

many-to-many-instead-of-one-to-many.png

With regards,

Rihards

1 ACCEPTED SOLUTION
rihard505
Frequent Visitor

Thank you, @amitchandak   , for the quick reply! 

It is not allowed to force 1-M in this case.

 

Banku grupēšana kopija 2 = ALL('Banku grupēšana')

 

Found the issue. DAX formula copies the table but adds a blank row as the last one.

Work-around for that is to use "Reference" (right-click on the table) in PowerQuery (didn't try anything in DAX)

 

Without the last row as blank it is possible to create 1-M relationship.

 

 

View solution in original post

2 REPLIES 2
rihard505
Frequent Visitor

Thank you, @amitchandak   , for the quick reply! 

It is not allowed to force 1-M in this case.

 

Banku grupēšana kopija 2 = ALL('Banku grupēšana')

 

Found the issue. DAX formula copies the table but adds a blank row as the last one.

Work-around for that is to use "Reference" (right-click on the table) in PowerQuery (didn't try anything in DAX)

 

Without the last row as blank it is possible to create 1-M relationship.

 

 

amitchandak
Super User
Super User

@rihard505 , Force it to 1-M. Also, check there is no blank value on one side of the table.  Also, The 1- M is inactive. is it working as 1-M as of now?

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.