The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello
I have two twin tables connected with a table called hierarchy, the first table (table1) is connected to the hierarchy table with a field called BU, so we have Table1.BU = Hierarchy.BU.
On the other hand in table two the connection is with the field Co Lead, i.e. Table2.Colead = Hierarchy.BU
What I want is that when filtering by Hierarchy.BU
Table 1 shows me all the rows related to the BU, but table 2 shows me everything related to the Hierarchy to which the Selected BU belongs.
How can I do that? Thanks
Solved! Go to Solution.
You can add a column "Hierachy" to Table 2 that contains the corresponding Hierarchy to Table 2.Co Lead and change the relationship to Hierarchy.Hierarchy=Table 2.Hierachy. If you want to avoid a many to many relationsip, build a table inbetween that contains just a distinct list of Hierarchy.
You could also create a measure that returns a blank value for all Table 2 rows that belong to excluded rows and a non-blank for all rows that are included and use it e.g. as a visual level filter that you test for "is not blank". But the relationship solution is probably faster.
TI used option 1, I created a Hierarchy column in Table 2 and changed the relationship as you mentioned. Thank you very much!
You can add a column "Hierachy" to Table 2 that contains the corresponding Hierarchy to Table 2.Co Lead and change the relationship to Hierarchy.Hierarchy=Table 2.Hierachy. If you want to avoid a many to many relationsip, build a table inbetween that contains just a distinct list of Hierarchy.
You could also create a measure that returns a blank value for all Table 2 rows that belong to excluded rows and a non-blank for all rows that are included and use it e.g. as a visual level filter that you test for "is not blank". But the relationship solution is probably faster.
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |