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
PBIX1234
Frequent Visitor

Two fact tables joined by many to many dimension table

I have a composite model with two fact tables, Spend data and Contract data. Both have common Supplier Names.

 

Spend data shows all orders placed.

Contract data shows all contracts held (past & present).

 

The objective is to show the Amount (Spend data) by Contract Status (Contract data) based on the Subcategory (joining table).

 

The complexity is that the categorisation across these two databases are slightly different, so the joining table / shared dimension maps these categories together.

 

I have a sample file here and listed the expected result. Excluded from the sample are other elements of the composite model such as a Date table connecting both the Order date (Spend) and Expiry date (Contracts). 

 

Is this the best model structure, or should this be a completely differently structure given the common Supplier Name also coming into play when filter by Supplier?

 

My only thought is that the common Supplier Names could be joined with a Supplier table, or have an inactive bidirectional many to many relationship between Spend and Contracts for the Supplier Names.

0 REPLIES 0

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.