cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Kingpin
Kudo Kingpin

How to solve relationship many to many ?

Hi All

When i add SEGMENT table to my PBI file , when i try to link segment field , i get :-

Paulyeo11_1-1606517350266.png

 

The linkage have multiple relationship.

Paulyeo11_0-1606517243690.png

My PBI file :-

https://www.dropbox.com/s/ealmerjjo8bfbpw/PB_TDS_V077%20USE%20THIS%20FOR%20ASK%20Q%20add%20segment%2...

 

Paul Yeo

1 ACCEPTED SOLUTION
Resolver III
Resolver III

Hi @Paulyeo11 ,

 

Good day,

 

In order to avoid the manay-to-many relationship, you need to do the following steps

1. Extract unique values from 1 table - Treat this as a Master Table (Dimension table)

2. Add relationship with the table to fact table

3. Now you can use 1-Many relationship

 

Thanks & Regards,

Mohammed Adnan

www.youtube.com/taik18

View solution in original post

3 REPLIES 3
Resolver III
Resolver III

Hi @Paulyeo11 ,

 

Good day,

 

In order to avoid the manay-to-many relationship, you need to do the following steps

1. Extract unique values from 1 table - Treat this as a Master Table (Dimension table)

2. Add relationship with the table to fact table

3. Now you can use 1-Many relationship

 

Thanks & Regards,

Mohammed Adnan

www.youtube.com/taik18

View solution in original post

Hi All

Thank you for sharing , but my issue is :-

Paulyeo11_0-1606538067634.png

 

Super User III
Super User III

You have to make it unique in one of the tables, and there can be no blanks or nulls in that field. Your segment_c field has a ton of blanks. You would have to:

  • Right-click on that field in Power Query and tell it to remove duplicates
  • Filter and on the dropdown menu, select "Remove Empty"

It can then be the 1 of a 1:Many relationship.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors