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
Anonymous
Not applicable

Having Issue with M:M Joins

Hi Experts,

file attached :sen1

i try to remove duplicate from item table and link my item merch -->item_table -->item_distinct table and from item distinct i joined my fact 1 and fact 2.  i want to values from item_merch cat_code and cat_id and againt sales data.sen1.jpg

 

file attached :sen2

dim_item tables has duplicate item_id . when i trying to join with my fact 1 and fact 2 . i cannot make active relationship for both , either one is active. and active fact got correct data.

 

sen2.jpg

 

 

 

 

please help. cannt understand whats going on

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@lbendlin 

 

I have item table and item_merchant table which will be join based on merch code. my item table join with 2 facts that i using item_id.

 

my requirement is to create a report which show Merch_Code,Merch_Cat,Sales2020_Amt,Sales2021_Amt merch_code .

 

1) In my data model if i Join ITEM table with Fact tables it only joining with M:M relationship

2) one ofmy facts relationship is diabled as metioned in screenshot above.

 

sample data

SAN2021_0-1612932680519.png

 

Hope I clarify the issue, please let me know if any further info

 

 

View solution in original post

lbendlin
Super User
Super User

Your data model should look like this

 

ITEM_MERCHANT 1:M ITEM 1:M SALES_FACTS

 

Combine your sales_facts table, no need to keep them separate.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Your data model should look like this

 

ITEM_MERCHANT 1:M ITEM 1:M SALES_FACTS

 

Combine your sales_facts table, no need to keep them separate.

lbendlin
Super User
Super User

If a dimension table has duplicate values in the key column then it is not a dimension table. Are you clear about what is causing the duplicates, and do you have a way to mitigate it that does not involve a bridge table?

 

What is the actual reporting question that your data model needs to answer?

Anonymous
Not applicable

@lbendlin 

 

I have item table and item_merchant table which will be join based on merch code. my item table join with 2 facts that i using item_id.

 

my requirement is to create a report which show Merch_Code,Merch_Cat,Sales2020_Amt,Sales2021_Amt merch_code .

 

1) In my data model if i Join ITEM table with Fact tables it only joining with M:M relationship

2) one ofmy facts relationship is diabled as metioned in screenshot above.

 

sample data

SAN2021_0-1612932680519.png

 

Hope I clarify the issue, please let me know if any further info

 

 

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.