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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
I_NeedMorePower
Helper III
Helper III

In Many-to-Many Relationship, How to Show Records That Exists in Table 1 But Not In Table 2?

Hello power community!

 

I have two tables with a Many-To-Many relationship.

Here is a screenshot of an exmple I made in Excel:

Power BI help.PNG

 

Here is the relation between the two tables:

Table1.VSaccount *-----<>-----* Table2.Account (Many-To-Many WITH Cross-filter set to BOTH)

 

My issue is when I create a table visual in Power BI that have columns from Table1 and columns from Table2, the records that only exists in Table 1 that has no related records on the 2nd table does not show in the result table.

Here is the power BI result example:

Power BI Help 2.PNG

As you can see the account "C" of table 1 did not appear in the resulted table.

 

How can I show it?/How can I include the records that does not have a counter part on the 2nd table?

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @I_NeedMorePower 

 

According to  your existing description, I am not sure what your problem is.

So I made a sample directly here:

url: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EVRW0pGcIDNKgfREBD_g_...

 

After establishing a corresponding many-to-many relationship between tables  ,I create a measure in table A:

Net = CALCULATE(SUM(Table1[Amount]))+CALCULATE(SUM(Table2[Amount]))

 

The results table shown below:

In-Many-to-Many-Relationship-How-to-Show-Records-That-Exists-in.png

 

 

If it doesn't meet your requirement, kindly share your sample data and expected result if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi , @I_NeedMorePower 

 

According to  your existing description, I am not sure what your problem is.

So I made a sample directly here:

url: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EVRW0pGcIDNKgfREBD_g_...

 

After establishing a corresponding many-to-many relationship between tables  ,I create a measure in table A:

Net = CALCULATE(SUM(Table1[Amount]))+CALCULATE(SUM(Table2[Amount]))

 

The results table shown below:

In-Many-to-Many-Relationship-How-to-Show-Records-That-Exists-in.png

 

 

If it doesn't meet your requirement, kindly share your sample data and expected result if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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