Forum Discussion
Power BI Desktop Many to Many Relationships
- 9 years ago
Hi Xiaoxin, sorry for not getting back to you earlier.
Yes that is the case, the two outer tables have multiple records and not single entries so I agree Power BI won't support this.
I've remodelled the data tables to insteadof trying to have multiple records in a many-to-many relationship that all the columns from these tables are added to one table which is a work around.
Many Thanks Xiaoxin for all your help with this issue.
Regards
Bert.
HI berta2b,
Power bi not support many to many relationship, you need to use table which has the unique key to link to those tables.
For example:
Table(Many) ——> Table(one) <—— Table(Many)
(Many to one) (one to many)
BTW, multiple blank records also will identified as the duplicate records, if your unique table contains them, you should remove them before create relationship.
Regards,
Xiaoxin Sheng
Hi Xiaoxin, thanks so much for your reply.
I have created this unique table, BookingsLink which has unique keys allowing the Many to one, One to Many between the two other tables.
My problem is although this relationship has been setup within Power BI Desktop 'Relationships' where I would think would resolve this, I can't access columns from the Table(Many) tables in one tabular visualisation report.
There are no blank keys, the Link table contains just the unique keys and no blanks.
Thanks again.
Bert
- berta2b9 years ago
Helper I
Sorry I have to apologise, I have confused the issue somewhat, when I copied and pasted the tables structures the columns moved around a bit!
Here is the correct design.
Bookings (30 columns) BookingsLink BookingsEMails (20 columns)
======== ============ ==============
Booking Reference Booking Reference Booking Reference
BookingDate EMail Sent
Brand
Amount
Customer First Name
Customer Last Name
Etc . . .- berta2b9 years ago
Helper I
Hi Xiaoxin, here's the correct design again
Bookings (30 columns) BookingsLink BookingsEMails (20 columns)
======== ============ ==============
Booking Reference Booking Reference Booking Reference
BookingDate (UNIQUE) EMail Sent
Brand EMail Address
Amount
Customer First Name
Customer Last Name
Etc . . .So the BookingsLink table has only one columns 'Booking Reference' which is unique and I'm trying to select 'Booking Date' and 'EMail Sent' for the same tabular report and then the issue.
Thanks and sorry for the confusion again.
Bert
- berta2b9 years ago
Helper I
Hey Xiaoxin, just seen your post to check the bi-directional option.
I'll give this a try and get back to you.
Many Thanks.
Bert
- Anonymous9 years agoNot applicable
Hi berta2b,
Did you check the 'cross filter direction' option at relationship setting? If it has setting to 'single', the relationship only works on one side, you can modify it to 'both' to work through it.
Regards,
Xiaoxin Sheng