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
xarius
Helper I
Helper I

Multiple 1 to many relationships

Hi,

 

I have 2 tables, Table A has various information about all my teams - teams are unique in this table. Table B holds a list of events where 2 of the teams are involved in each time - every row has 2 teams, one each in columns "Team 1" and "Team 2".

 

I can create a one to many relationship from Table A to column "Team 1", but I can't create a second relationship to the "Team 2" column.

 

How should I be doing this?

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @xarius ,

 

Enter into Query Editor, click on column Team 1 and Team 2 at the same time, right click to choose "Unpivot Columns", rename this result columns . Don't forget to click the "Close & Apply" button. After that, you can begin to create relationship.

 

 

9.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards,

Amy

 

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

 

 

Hi Amy (@v-xicai),

 

This then breaks the fact that my events table is unique to each event (I have 1 to many relationship of that used elsewhere). Is there any other way around it or do I have to make a new table for my events and link to this table?

 

Regards,

Xarius

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.