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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.

Top Solution Authors