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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
cparker4486
Helper III
Helper III

Relationship not being applied to some visuals

(This is the second I'm posting this because the first time resulted in an error and the post was lost.)

 

I have a relationship between transaction headers and transaction line items. I'm trying to apply a filter on the line item number field that will exclude transactions that don't meet the criteria. (That's how filters work, right? 😉)

 

Below are my relationship and my report. The card should read fewer than 100 and the map should also be doing the same. You can see that the table is correct (by looking at the sum of QUANTITY).

 

Why is it being ignored for the other visuals?

 

RelationshipRelationship

 

ReportReport

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @cparker4486,

From looking at your relationship, I believe that the direction between the tables is the issue. If you look at the arrow direction from header to line, this means that the header table can filter the line table, but not the other way around, i.e. the arrow only goes one way. This blog post may explain it better than I can.

You have a couple of solutions (in order of simplicity):

  1. Change the relationship direction from single to bi-directional. While this is possible, it is often discouraged in favour of...
  2. Re-designing the model.
    • Because the header and line tables are essentially 'fact' tables, it is advised to have a 'dimension' table (or similar) that bridges them so that filtering works more intuitively, or, replace both tables with a single table so that you are working at the right level of grain. This latter option might not be ideal depending on your scenario.
    • Again, RADACAD have a great series on these modelling concepts, if you've not come across them to date. This is the most recent post, but it's good to read them through from the beginning (all referenced in the linked post).
    • The 'right' model will vary depending on your particular use case but the above dimensional modelling principles are a great way to structure your data so that it is its most malleable.

I hope this sets you off in the right direction. Good luck!

Daniel





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

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @cparker4486 ,

You can also take a look at following document about power bi interaction to confirm if you turned off interaction between these visuals.

Change how visuals interact in a Power BI report

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
dm-p
Super User
Super User

Hi @cparker4486,

From looking at your relationship, I believe that the direction between the tables is the issue. If you look at the arrow direction from header to line, this means that the header table can filter the line table, but not the other way around, i.e. the arrow only goes one way. This blog post may explain it better than I can.

You have a couple of solutions (in order of simplicity):

  1. Change the relationship direction from single to bi-directional. While this is possible, it is often discouraged in favour of...
  2. Re-designing the model.
    • Because the header and line tables are essentially 'fact' tables, it is advised to have a 'dimension' table (or similar) that bridges them so that filtering works more intuitively, or, replace both tables with a single table so that you are working at the right level of grain. This latter option might not be ideal depending on your scenario.
    • Again, RADACAD have a great series on these modelling concepts, if you've not come across them to date. This is the most recent post, but it's good to read them through from the beginning (all referenced in the linked post).
    • The 'right' model will vary depending on your particular use case but the above dimensional modelling principles are a great way to structure your data so that it is its most malleable.

I hope this sets you off in the right direction. Good luck!

Daniel





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

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




This explains a lot. I've come across this issue multiple times in the past with different data and I'll always ended up working around it. Now I'll have a chance to fix this properly!

 

I wonder if this will make Power BI crash less...? That would be a nice side effect!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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