The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Solved! Go to Solution.
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?
Proud to be a Super User!
Thanks you @danextian
The combination of calculate, userelationship, and crossfilter produced the output I was after 😉
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?
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
81 | |
78 | |
43 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |