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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Dynamic Grouping for Tree Map

Hello,

 

I am trying to create a tree map that has dynamic grouping. The measurement is sum of total hours spent on certain categorys. Some categorys would be customer service, auditing, etc. The top 90% of total hours spent will all be default colors set by microsoft. But I would like to block the bottom 10% into a gray color. The issue is when I filter on one of the employees the conditoinal formatting doesn't change color based on the employee I filter on. It doesn't adjust the conditional formatting to the employee I select. 

 

 

Here is how the map is unfiltered. Which is what I want. 

Tree Map Example 1.PNG

 

 

This is what happens when the dashboard is filtered by employee. You can see those original grey boxes are still grey. I want the conditional formating (lower 10% grey color) to adjust when the table is filtered. 

 

 

Tree Map Example 2.PNG

Want it to look like this when filtered by employee. 

 

Tree Map Example 3.PNG

 

I'm not sure if this is possible or not. Thank you!

3 REPLIES 3
Anonymous
Not applicable

@Anonymous - it appears that the calculation on which the conditional formatting is based could be tweaked to provide the correct results - could you provide that information, or even better a sample pbix?

 

Anonymous
Not applicable

Of course, here is the calculation I am using is 

 
% hours worked = DIVIDE( [Hours Worked], CALCULATE( [Hours Worked], ALLSELECTED()),0)
 
Here is the condiontal formatting.
 
Capture.PNG

 

Anonymous
Not applicable

@Anonymous  -

You actually don't need to use a measure for this - the TreeMap % will do the calculation for you on the straight Hours Worked. 

However, as you said, the Treemap locks in the colors and does not update dynamically.

A Hack Work-Around: You can switch a Column Chart, apply your rules and then switch back to a TreeMap. 

Please let us know whether that works.

I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.