Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Many to Many Relatioship

Dta.pngdata model.pngHello All

 

I'm Trying to create a report where i have two Table as Error Table and Client Record. Both table have Many to Many Relation  and Both  as cross Filter Drection . I have tried creating Bridge Table and filter  total record and total error from Client REcord Table and Error  by date but not getting correct numer of total Record. i also used crossfilter dax , but it didnt work  Please help me  what approach  i can take

 
9 REPLIES 9
Anonymous
Not applicable

Can I get any help on this please
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

You'd better ceate a bridge table when use many to many relationship,such as below:

Annotation 2020-04-20 101348.png

 

Here is the reference.  https://docs.microsoft.com/en-us/power-bi/desktop-many-to-many-relationships

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

Hello Kelly

I have created bridge table but it didn't work as expected

Hi @Anonymous ,

 

I made 2 sample tables which have many to many relationship,see below:

Annotation 2020-04-21 183342.png

Would you pls advise me what is your expected output?

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

Hi  @v-kelly-msft 

 

Thanks for helping, i will give you   below data  sample please refer,

error table sample

DUPLICATE FIELDCUSTODIANCLIENTCREATE DATE
DuplicatesGBS CDM AtlantaNorth America4/1/2020
StreetGBS CDM AtlantaNorth America3/1/2020
StreetGBS CDM AtlantaNorth America3/1/2020
Name1GBS CDM AtlantaNorth America3/1/2020
Name1GBS CDM AtlantaNorth America3/1/2020

 

Client Record Table

Group TypeGroup NameRecord CountCREATE DATE
ClientCorporate34/1/2019
ClientCPS EEA34/1/2019
ClientCPS Asia24/1/2019
ClientCPS EEA13/1/2020
ClientCPS Latin America44/1/2019
ClientCPS Latin America24/1/2019
ClientCPS Latin America24/1/2019
ClientCorporate19/1/2019
ClientCorporate19/1/2019
ClientCorporate11/1/2020
ClientCorporate13/1/2020
ClientCorporate13/1/2020
ClientCPS Asia24/1/2019
ClientCPS Asia14/1/2019

I need 1 date slicer to filter output  and output table like below

Client TypeCount of DuplicateTotal RecordDuplicate percentage
Corporate54780.01
CPS Asia42300.01
CPS EEA21400.01
CPS Latin America11310.01
CPS North America01110.01
EMEA41100.05
Latin America39900.05
North America7560.05
Not Aligned11200.05
Pacific41600.01


Currently i getting wrong Total Reord in my output table

 
 
  •  
Anonymous
Not applicable

Hi @v-kelly-msft.

What you are referring to is not really Many-to-Many. It's an example of a granularity problem.

So it's not the pattern of M2M:

Table1 1:* Bridge *:1 Table2

but a completely different one:

Table1 *:1 DistinctValues 1:* Table2.

This is not Many-to-Many. It's a granularity issue and can be solved easily without the middle table. You can join directly the fields from Table1 to Table2. You then get something that's known as a weak relationship and is enough to solve the problem.

Best
D

Anonymous
Not applicable

Many-to-Many means having a bridge table from a dimension to a dimension. So, it's Dim1 1:* Bridge *:1 Dim2. The classic example of this is the association between accounts and customers. One account can have several owners and one owner can own several accounts. Therefore the structure is:

Account 1:* AccountToCustomerBridge *:1 Customer.

You do not have a bridge table in your picture.

Best
D
Anonymous
Not applicable

Hi Darlove

 

Please see this screeshot , this is  actual table need to connect data model.png

@Anonymous , Your screenshot is not making it clear. Can you share sample data and sample output.

Are you able to join in the required column? Or do need to create a concatenated column.

Like New Key = [Key1] &"-"& [Key2]

 

Also, refer :

https://www.seerinteractive.com/blog/join-many-many-power-bi/

https://docs.microsoft.com/en-us/power-bi/desktop-many-to-many-relationships

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.