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
Anonymous
Not applicable

Relationship Many to Many on Report Server

Hello,

 

I'm trying to do a Many to Many Relationship on Power BI Report Server (May 2021), but this error occurs
"You can't create a relationship between these two columns because one of the columns must have unique values".

 

 It is possible solve this problem?

 

Regards,

Marco

2 REPLIES 2
Petebro
Employee
Employee

Wanted to bump this old thread because it is high on search engine results to announce that many to many relationships will be supported in Power BI Report Server (and Power BI Desktop for RS) in January 2024 versions and later.

d_gosbell
Super User
Super User

I don't believe Report Server supports many to many relationships. The work around is to create a bridge table with a list of the distinct values from one of your columns (you can do this with a calculated table using an expression like VALUES( table[column] ).

 

Then you create a many to 1 and 1 to many relationship chain like the following to achieve the same behaviour as a m2m relationship:

 

table1[column]  * --> 1  calcTable[column]  1 <---- * table2[column]

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.