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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Data Modeling - How do I connect two Facts to two dimensions

I have these tables -

FactDemand : ProjectID, Date, some measures

DimProject: ProjectID, some details

FactSupply: ProjectID, Date, some measures

DimCalender: Date

 

I need to have a comparative view of demand vs supply on timeline for different projects (calculated measures at run time comparing respective measures between FactDemand and FactSupply), so I need them to be related through ProjectID and Date.

 

More clearly, FactDemand and FactSupply with CalenderTable on Date.

Also FactDemand and FactSupply with DimProject on ProjectID.

 

How do I model this in Power BI?

I cannot seem to achieve it since it says cannot have two active relationships between same tables (i.e. FactDemand and FactSupply)

 

How do I go forward with it!!

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

Hi @Anonymous ,

What you want is a model like this?

cc6.PNG

If you want to build this kind of table model, there must be a 1: * or 1: 1 relationship between the tables.

cc7.PNG

 

Why don't you build relationships directly between Tables "FactSupply" and "FactDemand"? I think this can also achieve your visual effects.

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

What you want is a model like this?

cc6.PNG

If you want to build this kind of table model, there must be a 1: * or 1: 1 relationship between the tables.

cc7.PNG

 

Why don't you build relationships directly between Tables "FactSupply" and "FactDemand"? I think this can also achieve your visual effects.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-lionel-msft ,

 

Thanks for sharing the diagram and (1: * or 1: 1 relationship) tip!

It made me think it is possible what I was looking for.

 

I actually had developed this habit of selecting the Cross Filter Direction to be Both.

Because of this I couldn't make all these 4 relationships active at once. Once I switched it to Single, it started working.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors