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
APR
Microsoft Employee
Microsoft Employee

Conditional Format the last node of the Hierarchy in a matrix with subtotal

Hello 

 

I have various levels of hierarchy under each manager. Here is the issue

Levels Under Manager 1Levels Under Manager 2Levels Under Manager 3
111
222
333
444
555
Blank66
Blank77
Blank8Blank
Blank9Blank
BlankBlankBlank

 

In the above scenario, i need to conditionally format the lower most node with a specific color bacground when i drill down on the hierarchy in a matrix visual. I need to have subtotals on in this. I was able to eliminate all the blanks when drilling down on the hierarchy but conditionally formatting the last node is being difficult.

Any suggestions please?

 

Thank you

 

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @APR 

I'm a little confused by your description, What is your expected output based on the sample data.

Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
APR
Microsoft Employee
Microsoft Employee

Hello LIN,

 

I'm talking about the matrix visual here. Since I have multiple levels in the hierarchy (9 levels max) in the above example.

When I perform a drilldown function in Matrix, I should be able to see results as below:

Manager 1 
 Subordinate 1
 Subordinate 2
 Subordinate 3
 Subordinate 4
 Subordinate 5
Manager 2 
 Subordinate 1
 Subordinate 2
 Subordinate 3
 Subordinate 4
 Subordinate 5
 Subordinate 6
 Subordinate 7
 Subordinate 8
 Subordinate 9
Manager 3 
 Subordinate 1
 Subordinate 2
 Subordinate 3

 

Basically The lower most node in my hierarchy should be conditionally formatted to a specific font color or a background color.

Eg: If I specify the level in my hierarchy where i need conditional formatting, it works. But drilling down one more level makes it disappear.

Here, Manager 3 has Subordinate 3 as his last subordinate but Manager 2 has Subordinate 9 as his last subordinate. When I drill down on the hierarchy Manager 3 would get a blank context for every level after Subordinate 3.

To be able to factor this in and have the lower most node in my hierarchy conditionally formatted is what I'm looking for.

 

Thank you.

 

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.