cancel
Showing results for 
Search instead for 
Did you mean: 
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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Top Solution Authors