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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JasonArmstrong
Frequent Visitor

Strange behaviour between tables with relationships - returning row combinations that do not exist

For context: I have set up medallion architecture using MS Fabric and created a custom sematic model from my lakehouse and am now developing reports.

 

I've encountered behaviour within a table that does not make any sense to me. I have 2 tables; Project and Contract where there is a 1 to * relatonship between Project and Contract (one project has many contracts) with the two tables linking on project_id.

 

JasonArmstrong_0-1755114505510.png

 

All very normal stuff, and I have this same set up in the older data model we have (prior to transitioning to Fabric). Where it gets strange (and honestly is pi**ing me off) is when i try to populate a table visual containing attributes from both tables.

 

The expected behaviour is (based on using the project_id 21448 from dim_project and the contract_no and contract_name from dim_contract) that if i put in the project_id from dim_project and the contract_no & contract_name from dim_contract that it will return the 4 contracts associated with that project and their names.

 

This IS how it behaves in the old model (same relationships) and in tests i recreate with the same lakehouse tables via a different semantic model. 

 

So old model / test model (notibly both import mode): When i split them up and select the correct project_id the contract values filter correctly and provide the correct contract info. When combined into a single tabke it behaves as inteded (showing the project_id against all of the correct contracts

JasonArmstrong_0-1755117135581.png

 

 

Current semantic model (DirectLake): When i split them up and select the correct project_id the contract values filter correctly and provide the correct contract info. But when i combine them it starts to create combinations that do not exist for contract numbers that do not exist for this project contract combination. Interestingly if i put the contract_id into the combined table it will work, but i shouldn't have to.

 

JasonArmstrong_3-1755116992073.png

 

 

I also tested creating a brand new semantic model from the lakehouse with a directlake connection and just imported those 2 tables and it behaved correctly. So i am at a loss as to why this is occuring. It must be something to do with my model, but the only table that filters dim_contract is dim_project. I do have RLS implemented but even when i remove the roles it does not change

 

edit: I also tested deactivating all other relationships in order to recreate the successful scenario with the other direct lake semantic model where i import just the two tables in qestion.

1 ACCEPTED SOLUTION

I have fixed this issue. I simply deleted all relationships and remade them. Most likely issue is that somewhere when setting up my relationships I have created something that was not correct and hadn't noticed. Since rebuilding all of the relationships it is behaving as expected. Classic PICNIC issue (Problem In Chair, Not In Computer)

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @JasonArmstrong 

 

So just to confirm, when you add the contract ID into the table it works as expected. If this is the case, this is because it needs the contract ID in there to complete the filterof propagation by the relationship.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Perhaps you're correct. But that is not required in my other scenarios where i recreated the set up with the two tables in question (see screeshow below):

JasonArmstrong_1-1755123152830.png

 

 

In addition to that if i bring in a single value from contract e.g. just project_id and contract_no when using the problematic set up i get the correct values returned

 

JasonArmstrong_2-1755123332337.png

 

 

If the problem was recreateable in other scenarios i'd perhaps understand but it isnt. Could this be connected to any of the Fabric outages? Is there perhaps a strange setting or quirk i've managed to turn on. 

I have fixed this issue. I simply deleted all relationships and remade them. Most likely issue is that somewhere when setting up my relationships I have created something that was not correct and hadn't noticed. Since rebuilding all of the relationships it is behaving as expected. Classic PICNIC issue (Problem In Chair, Not In Computer)

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.