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 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
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
- berta2b9 years ago
Helper I
Hi Xiaoxin, I tried your suggestion but this didn't work I'm afraid :(
I set the 'Cross Filter direction' to BOTH on my 'Many to One' relation 'Bookings' -> 'BookingsLink' and 'BookingEMails' -> 'BookingsLink' and still had the same issue.
Bert