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
manojsv16
Helper II
Helper II

Relationship between Fact to Fact tables

Hello All,

 

I am working on to develop a report which has 3 fact tables and multiple dimension tables. Please refer the below screenshot for relationship layout of tables.  I wanted to connect fact to fact tables (v_Fact1_c -> v_Fact2_c -> v_Fact 3_c). When i try to connect the fact tables, Few of the visuals are displaying errors and identified the errors are due to the relationship established between fact tables. Also, few visuals loads with inacurate data. 

 

If i established the relationship between (v_Fact1_c & v_Fact2_c) is One-One (which is the actual relationship based on the data), I am getting error in visuals. When i change the relationship between (v_Fact1_c & v_Fact2_c) to Many-One relationship (Which is not the desired one), then i am not getting any errors, but data is inacurate.  I would appreciate any suggestion on optimizing the relationship between fact to fact tables and resolving the errors.   

 

Appologize for naming convention used for the tables. Relationship Issue _ Layout.PNG

 

 

 

2 ACCEPTED SOLUTIONS
d_gosbell
Super User
Super User

It's usually better to avoid fact to fact joins. If fact_1 and fact_2 are logically related 1 to 1 this means you could inner join them and just create one large "virutal" fact table.

 

For fact_3 if it is actually a 1 to many relationship what you could do would be to use the join column to copy all the dimension keys from the other two facts down to fact_3 then you would just join the dimensions to the facts and remove the join between fact_3 and the other fact tables. Then any time you filter on one of the dimensions both facts would get filtered.  

View solution in original post

synergised
Resolver II
Resolver II

google "power bi multiple fact tables" there are several videos on how to easily do this.  We ended up creating a linktable and two fact tables which works good.

View solution in original post

2 REPLIES 2
synergised
Resolver II
Resolver II

google "power bi multiple fact tables" there are several videos on how to easily do this.  We ended up creating a linktable and two fact tables which works good.

d_gosbell
Super User
Super User

It's usually better to avoid fact to fact joins. If fact_1 and fact_2 are logically related 1 to 1 this means you could inner join them and just create one large "virutal" fact table.

 

For fact_3 if it is actually a 1 to many relationship what you could do would be to use the join column to copy all the dimension keys from the other two facts down to fact_3 then you would just join the dimensions to the facts and remove the join between fact_3 and the other fact tables. Then any time you filter on one of the dimensions both facts would get filtered.  

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.