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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Savil
Regular Visitor

Dealing with possible ambiguous relationships

Hello, people!

 

I realize Power BI normally doesn't support multiple relationship paths between 2 tables, since it would introduce ambiguity when propagating the filters, which does make sense. With that being said, I would like to know how I could approach my issue: 

In its simplest form, my model would look something like this:

Savil_0-1705509083928.png

Which I use to plot the Expenses in terms of Departments and Months. Simple enough.

 

Here is where it gets tricky: in my company it is very possible for a Cost Center to change from one Department to another throughout the year. Thus, the relationship between Cost Centers and Department should be Calendar dependent, which in my head would look something like this:

Savil_1-1705510147534.png

Aaand you can see the problem.... They would be 2 relationship paths from dCalendar to fExpenseLines.


So, basically my goal is to accurately plot Expenses as a function of Departments and Months, considering that the Cost Centers that make up any specific Department might change as a function of time as well. 

Is there any way I can achieve this behavior in Power BI?

I hope I made myself clear and thanks in advance!

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Could you add the Department to the expense lines directly and assign it based on the expense date?

jdbuchanan71_0-1705512248875.png

 

View solution in original post

2 REPLIES 2
Savil
Regular Visitor

Yes, I could theoretically use PowerQuery to generate a Department column in the ExpenseLines table and assign it as you suggested.

I had never thought about considering Departments and CostCenters as 2 independent dimensions in the model, but that would probably work. I'll give it a try!

 

Thanks for the help!

jdbuchanan71
Super User
Super User

Could you add the Department to the expense lines directly and assign it based on the expense date?

jdbuchanan71_0-1705512248875.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors