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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DataNinja777
Super User
Super User

Relationship issue

Hi Power BI Community,

 

I have a following data model where I have two chart of accounts of different companies mapped by connecting key.  I'd like to see the G/L Account of  Company A side by side by GL account of Company B even though they have nothing in common except for that connecting key.  Due to the relationship key is the yellow highlighted field, I connot apply the filter to company A's from the GL information of Company B.  Please could you let me know what I should do in this situation?  I tried relatedtable function, calculalte and crossfilter between Company A and Company B's inactive relationship, but I cannot properly filter the GL account information of Company A from Company B's GL and vice versa.  Thank you for your help.

DataNinja777_0-1701741292000.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @DataNinja777,

 

You cannot use an inactive relationship to filter table A from a column in table B like you can with an active relationship. You need to use USERELATIONSHIP to invoke such a relationship in a measure and put that measure in your visual.

=
CALCULATE (
    SUM ( tableB[Column] ),
    USERELATIONSHIP ( tableA[key], tableB[key] )
)

 

But I'm curious, since you have a related table in between thet two fact tables, why not use that instead?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
DataNinja777
Super User
Super User

Thanks you @danextian 

The combination of calculate, userelationship, and crossfilter produced the output I was after 😉

danextian
Super User
Super User

Hi @DataNinja777,

 

You cannot use an inactive relationship to filter table A from a column in table B like you can with an active relationship. You need to use USERELATIONSHIP to invoke such a relationship in a measure and put that measure in your visual.

=
CALCULATE (
    SUM ( tableB[Column] ),
    USERELATIONSHIP ( tableA[key], tableB[key] )
)

 

But I'm curious, since you have a related table in between thet two fact tables, why not use that instead?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.