cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Impactful Individual
Impactful Individual

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

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors