Power BI Custom Visual
Treemap for Power BI
AI-generated treemap for Power BI. Describe what you need in plain English; download a ready-to-import .pbiviz file. Full TypeScript source included.
By Nawaf Sharaf · Founder & Reliability Engineer · Updated
1–5 credits by complexity · 5 free on signup
A treemap divides a rectangle into nested sub-rectangles whose area is proportional to a numeric value. It's the fastest way to see composition at a glance when you have dozens or hundreds of categories — especially when categories are hierarchical (product → subcategory → SKU).
Power BI ships a basic treemap, but it's limited: no deep nesting beyond one or two levels, no drill-down preview on hover, no custom labeling logic for small cells, and no squarified vs. slice-and-dice layout choice. For executive dashboards or portfolio-analysis reports you usually end up layering conditional formatting onto a table instead.
VizForge generates a Power BI treemap tailored to how many levels of hierarchy you have, the labeling rules you want at small sizes, and the layout algorithm that fits your data best. Our AI writes the TypeScript visual against Power BI's hierarchy capabilities, packages it as a .pbiviz, and hands you the full source so you can tweak colors, borders, and interactions.
When to use a treemap in Power BI
- Portfolio composition (asset class → sector → position)
- Revenue by product hierarchy (line → family → SKU)
- Cost structure breakdown (department → team → expense category)
- Market share within a crowded category
- Story viewership (channel → show → episode)
Example prompt
Example VizForge prompt
Treemap with 3 levels: product line → category → SKU. Size by revenue, color by profit margin (red below 15%, green above 30%, yellow between). Show labels only when cell is at least 5% of total area.
Data shape required
Hierarchy columns (e.g. Line, Category, SKU) plus a numeric Value column. Optional SecondValue column drives color scale independently of size.
Live preview
Typical DAX measures
Revenue = SUM( Orders[Amount] )
Margin Percent =
DIVIDE( SUM( Orders[Profit] ), SUM( Orders[Amount] ) )
Label Visible (1 = show, 0 = hide) =
VAR Share = DIVIDE( [Revenue], CALCULATE( [Revenue], ALL( Orders ) ) )
RETURN IF( Share >= 0.05, 1, 0 )5 free credits on signup, no credit card required. One-time credit packs from $9.99 — credits never expire.
The example prompt on this page goes with you into the workspace.
FAQ
How many nesting levels does it support?
Up to 6 in practice. Beyond that, labels become unreadable. If you need deeper drill-down, generate a treemap that opens the deeper levels on click.
Squarified or slice-and-dice layout?
Squarified by default (more readable rectangles). Prompt for 'slice and dice' or 'strip layout' if you need a specific algorithm — VizForge supports them all.
Can color encode a different metric than size?
Yes. Prompt with something like 'size by revenue, color by margin percent' and the AI-generated visual decouples the two.
Will it drill through?
Yes — standard Power BI drill-through works via SelectionManager, and the visual supports 'expand next level' from the visual menu.
Guides for treemap
Power BI How-To
How to make a treemap in Power BIField wells, a worked example, prompt checklist and first-render checks.
Decision guide
AI-generated vs Marketplace visualsCost, customisation and source ownership, honestly compared.
Free .pbiviz
Free Power BI custom visualsEvery real source of free .pbiviz files, and the catch with each.
Dashboards that use a treemap
Dashboard jobs where a treemap is one of the recommended visuals, with the DAX and prompts for each.
Retail category managers, merchandising analysts
Best Power BI Visuals for Retail AnalyticsCategory → subcategory → SKU revenue hierarchy at a glance.
Property managers, REIT analysts, portfolio leads
Best Power BI Visuals for a Real Estate Portfolio DashboardPortfolio composition: asset class → market → property, sized by value.
Dashboard templates to put it on
Free page layouts from the Design Studio. Each downloads as a background image, theme JSON and PBIP project; drop the generated .pbiviz into the matching slot.
Finance template
Travel & Expense ManagementHas a slot for it: “Spend by expense type”.
Public sector template
City Service Requests (311)Has a slot for it: “Requests by type”.
Marketing template
Marketing Campaign PerformanceHas a slot for it: “Spend by channel”.
Design the page around it, free
A custom visual looks best on a designed page. The free VizForge Design Studio lays out a branded report page at Power BI’s pixel size and exports the background image, a theme JSON and a PBIP project. No signup.
Open the free Design Studio →Other ways to get a treemap
Honest, side-by-side comparisons with the marketplace and developer tools, including when they are the better choice.
Comparison
VizForge vs Microsoft Marketplace (AppSource)VizForge vs Microsoft Marketplace (formerly AppSource): AI custom visual generator vs. hundreds of pre-built…
Comparison
VizForge vs ZoomChartsVizForge vs ZoomCharts, 2026: AI custom visuals vs drilldown visuals, plus their PBIX template gallery ($24.99 a…
Comparison
VizForge vs ChartExpoVizForge vs ChartExpo — honest 2026 comparison. AI custom visuals vs. niche / non-standard chart…
Related visuals
AI-generated sunburst chart for Power BI. Radial hierarchy — org charts, category drilldowns, hierarchical proportions.
AI-generated heatmap for Power BI. Density grids, correlation matrices, calendar heatmaps — continuous color-scale inten
AI-generated Marimekko / Mekko chart for Power BI. Variable-width stacked bars — market share × segment breakdown.
AI-generated bullet chart for Power BI. Stephen Few's compact KPI visual — actual, target, and qualitative ranges in one
Need a related visual?
Browse the full VizForge visual catalog →