This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have a Power BI Matrix visual with a ragged Balance Sheet hierarchy.
Important clarification upfront:
Model setup
Hierarchy table: DIM_Balance_Hierarchy
Account mapping table: DIM_Account_to_Balance
Fact table:
Matrix Rows (in this exact order)
this is the current setup in rows and values section in visualization pane.
Current behavior
Measure logic used:
MustHide =
SWITCH (
TRUE(),
ISINSCOPE ( 'DIM_Balance_Hierarchy'[Level 7] ),
ISBLANK ( SELECTEDVALUE ( 'DIM_Balance_Hierarchy'[Level 7] ) ),
ISINSCOPE ( 'DIM_Balance_Hierarchy'[Level 6] ),
ISBLANK ( SELECTEDVALUE ( 'DIM_Balance_Hierarchy'[Level 6] ) ),
ISINSCOPE ( 'DIM_Balance_Hierarchy'[Level 5] ),
ISBLANK ( SELECTEDVALUE ( 'DIM_Balance_Hierarchy'[Level 5] ) ),
ISINSCOPE ( 'DIM_Balance_Hierarchy'[Level 4] ),
ISBLANK ( SELECTEDVALUE ( 'DIM_Balance_Hierarchy'[Level 4] ) ),
ISINSCOPE ( 'DIM_Balance_Hierarchy'[Level 3] ),
ISBLANK ( SELECTEDVALUE ( 'DIM_Balance_Hierarchy'[Level 3] ) ),
ISINSCOPE ( 'DIM_Balance_Hierarchy'[Level 2] ),
ISBLANK ( SELECTEDVALUE ( 'DIM_Balance_Hierarchy'[Level 2] ) ),
FALSE()
)
Headcount =
IF (
[mustHide],
BLANK(),
SUMX (
VALUES ( 'DIM_Account_to_Balance'[Account] ),
1
)
)
Current Level =
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 1] ) +
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 2] ) +
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 3] ) +
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 4] ) +
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 5] ) +
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 6] ) +
ISFILTERED ( 'DIM_Balance_Hierarchy'[Level 7] )
Current Level Visible =
IF (
[mustHide],
BLANK(),
[Current Level]
)
Requirement
Question
Is it technically possible in a Power BI Matrix visual to:
or is this a Matrix engine limitation that requires restructuring the hierarchy (e.g., using a derived parent‑child hierarchy that includes Account as leaf nodes)?
Solved! Go to Solution.
Hi @Rahul_Nair ,
Since you are ending with a table from another dimension you will not be able to get the expected outcome because you are making the filter to blank out at the hiearchy level (1, 2, 3,,..7) so if you don't have values at the lowest level then the calculation will never get to the account.
This is a very tricky question specially when you are dealing with Debit and Credits since the calculations will change accordingly to different rules.
Check the blog post below and video that can help you get a more assertive option for your needs.
https://www.daxpatterns.com/parent-child-hierarchies/
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Rahul_Nair
Thank you for reaching out to the Microsoft Fabric Forum Community.
@MFelix Thanks for the inputs.
I hope the information provided by users was helpful. If you still have questions, please don't hesitate to reach out to the community.
Hi @Rahul_Nair
Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.
Hi @Rahul_Nair ,
Since you are ending with a table from another dimension you will not be able to get the expected outcome because you are making the filter to blank out at the hiearchy level (1, 2, 3,,..7) so if you don't have values at the lowest level then the calculation will never get to the account.
This is a very tricky question specially when you are dealing with Debit and Credits since the calculations will change accordingly to different rules.
Check the blog post below and video that can help you get a more assertive option for your needs.
https://www.daxpatterns.com/parent-child-hierarchies/
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 28 | |
| 28 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 38 | |
| 32 | |
| 28 | |
| 24 |