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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.