Power BI Treemaps: Map Hierarchy to Area and Check Contributions
A treemap divides a hierarchy into nested rectangles; area represents a numeric value. In Power BI, put the parent group in **Category**, its children in **Details**, and the numeric measure in **Values**. This is useful for scanning many items and their shares, while a bar chart is often easier for precise comparisons.
Power BI Treemaps: Map Hierarchy to Area and Check Contributions
A treemap divides a hierarchy into nested rectangles; area represents a numeric value. In Power BI, put the parent group in Category, its children in Details, and the numeric measure in Values. This is useful for scanning many items and their shares, while a bar chart is often easier for precise comparisons.
What question does it answer?
Large rectangles represent parent branches, and smaller rectangles inside them represent child items. The nesting preserves hierarchy while using screen space efficiently. Microsoft documents clothing type as a parent and manufacturer as its children, sized by a measure. Microsoft: Treemaps in Power BI · Johnson and Shneiderman, 1991
Use it to ask which groups contribute most and which children stand out within a group. Microsoft recommends treemaps for large hierarchies and part-to-whole distributions. For close value comparisons or trends over time, consider bars or lines. A controlled study found area comparisons less accurate than length comparisons in its tasks; treemaps, however, use space efficiently and show hierarchy directly. The study does not give a universal threshold for every report. Kong et al., 2010
Match fields to the hierarchy
In the built-in Power BI treemap, Category is the parent, Details divides each parent into children, and Values supplies the measure used for rectangle size. For product-family sales by product, use family, product, and sales respectively. Check that labels and model relationships reflect the intended parent-child structure.
The following values are a fictional, hand-checkable example. Each family total must equal its children:
| Category | Details | Sales |
|---|---|---|
| Hardware | Sensor 300; Gateway 220; Controller 180 | 700 |
| Software | Analytics 260; Security 140; Automation 100 | 500 |
| Services | Installation 160; Training 90; Support 50 | 300 |
The grand total is 1,500. Hardware is 46.7%, software 33.3%, and services 20%. Within Hardware, the three child areas represent 300, 220, and 180. Reconcile parent totals and the grand total against the source table before interpreting the visual.
Build and verify it
Microsoft’s documented field setup applies to Power BI Desktop and the Power BI service; pane names can change with updates. Microsoft: create a treemap
Confirm the numeric measure and its aggregation are correct under the report’s filters.
Add the measure to a visual and change its type to **Treemap**. Confirm the **Category**, **Details**, and **Values** roles appear.
Add the parent and child fields to Category and Details, and the measure to Values.
Compare tooltips and filtered totals with the source. Microsoft documents that selecting a Category or Details item can cross-highlight or cross-filter other visuals on the page; verify the report’s interaction settings.
Give color a clear, separate meaning in a legend or title. Power BI’s built-in treemap cannot use **Color Saturation** and **Details** simultaneously, so decide whether children or conditional color is more important.
Expected result: parent area follows the parent total, and child area follows its value within the parent. Check totals, color meaning, and interactions. Do not assume color encodes the same measure as area unless the legend says so.
Choose bars when exact comparison matters
Treemaps fit many hierarchical items into limited space, but small or similarly sized rectangles can be hard to compare. Kong, Heer, and Agrawala’s experiments found that area judgments and rectangle aspect ratio can affect comparison accuracy; bars encode values by length, while treemaps show hierarchy through containment. Choose bars for close values or exact ranking, and a treemap for scanning contributions across a dense hierarchy. These are evidence-informed choices, not a universal rule.
Troubleshoot
**Parent totals look wrong:** check the Values aggregation, filter context, model relationships, and whether child totals reconcile to the source.
**Children are missing or grouped oddly:** confirm the child field is in Details; inspect blanks, duplicate labels, and relationships.
**Children disappear after color formatting:** check the documented Color Saturation/Details conflict and choose which information to retain.
**Small items are unreadable:** group or filter less important items and provide a tooltip, table, or bar chart for exact values. Label any excluded data.
**Selecting a tile does not affect other visuals:** check that the page has another visual and that cross-filtering or highlighting is enabled.
Use a treemap to inspect hierarchy and major contributions compactly. Reconcile the field mapping and sums, explain area and color separately, and validate close comparisons with a bar chart. Product details here follow Microsoft Learn, accessed November 18, 2026 (page last updated December 1, 2025), and the cited research; no specific build was hands-on tested.