Power BI How-To

How to make a marimekko chart in Power BI

Build a marimekko chart in Power BI: field wells, a worked example, when the native visual is enough, and how to generate the .pbiviz without code.

By · Founder & Reliability Engineer · Updated

A Marimekko (Mekko) chart is a stacked bar whose column widths also carry data: width is a segment's share of the total, the stack is its composition. One rectangle shows market size by industry and the customer-tier mix within each, which a 100% stacked bar can only show by hiding the size difference.

Power BI has no native Marimekko. This guide builds one from a three-column shape (column category, stack category, value), covers the label logic that keeps small cells from becoming noise, and explains why both axes read as percentages while the tooltip shows the real values.

Step-by-step

  1. 1

    Shape the data for the marimekko chart

    Three columns: XCategory (the column), YCategory (the stacked segment), Value (numeric). One row per XCategory × YCategory pair. In the finished visual those columns land in the Column, Segment, Value wells, so name them that way from the start.

  2. 2

    Load a small sample into Power BI Desktop

    Import the six industry–tier rows. Keep Health's even split next to Finance's lopsided one, so you can see column width and segment height doing different jobs.

  3. 3

    Describe the marimekko chart and generate the .pbiviz

    On VizForge, describe the chart in plain English and say what matters for this one: column order: by total, alphabetical, or a sort column; segment order: by value within each column, or fixed across all columns; cell labels: percent of column, absolute value, both, or hidden below a size threshold. The pipeline writes the TypeScript, type-checks it and packages a .pbiviz.

  4. 4

    Import the .pbiviz into Power BI Desktop

    In the Visualizations pane, open the three-dot menu, choose Import a visual from a file and select the .pbiviz. The visual appears in the gallery; add it to the page like any built-in chart.

  5. 5

    Bind the field wells

    Column: Text column: the categories across the X axis, each sized by its total. Segment: Text column: the stack inside each column. Value: Numeric measure: cell area.

  6. 6

    Check the first render, then format

    Segments in a different order in each column: switch the segment order setting to 'fixed across columns'. Hairline columns at the right: many small categories; pool them into 'Other' in DAX or in the visual. Then open the formatting pane and set segment colours (one per Segment value) with theme override.

Field wells the generated marimekko chart exposes

After import, these are the data roles you drop fields into. The names come from the visual’s capabilities.json, which you can rename before packaging if your team uses different terms.

WellTakesNote
ColumnText column: the categories across the X axis, each sized by its total.Columns are ordered by total descending by default; bind a sort column to override.
SegmentText column: the stack inside each column.Consistent segment order across columns is what makes the chart readable.
ValueNumeric measure: cell area.Negative values can't be drawn; filter them out.

Worked example

Revenue by industry (column width) and company-size tier (stack).

IndustryTierRevenue
FinanceEnterprise6.0M
FinanceMid-market2.0M
RetailEnterprise1.5M
RetailMid-market3.5M
HealthEnterprise1.0M
HealthMid-market1.0M

What the chart draws: Finance is the widest column (8.0M of 15.0M, 53%) and mostly Enterprise; Retail is narrower and mostly Mid-market; Health is a thin column split evenly. Cell labels show the percent of column, tooltips the revenue.

Live preview

Live preview · sample dataDownload sample data (CSV) ↓
02505007501000842North613South957East489West724Central356Nordics
Quarterly revenue by region — a bar chart makes rank and magnitude instant. Rendered live from sample data — your generated visual uses your own model.

The AI alternative: Describe your marimekko chart in plain English and VizForge generates the .pbiviz, source included. 5 free credits on signup, no card required.

Generate a marimekko chart on VizForge →

Without code: what to put in the prompt

The generator turns a description into the TypeScript, so the description is where the decisions live. For a marimekko chart, say:

  • Column order: by total, alphabetical, or a sort column.
  • Segment order: by value within each column, or fixed across all columns.
  • Cell labels: percent of column, absolute value, both, or hidden below a size threshold.
  • Column-width labels along the X axis (the share of total) on or off.
  • Vertical (standard) or horizontal orientation.

Example VizForge prompt

Marimekko chart where column width = total revenue per industry (5 industries) and each column's stacked segments = company-size tier. Show percentages inside cells. Use a categorical palette by tier.

Customise it: formatting options worth exposing

Anything you name as adjustable becomes a card in Power BI’s formatting pane, which a report theme can then set for every copy of the visual. For a marimekko chart the options that earn their place are:

  • Segment colours (one per Segment value) with theme override.
  • Gap between columns and between stacked cells.
  • Label format and the minimum cell area that still shows a label.
  • X-axis label style: category name, width percent, or both.
  • Border colour and width around cells.

For changes the pane doesn’t cover, edit settings.ts and visual.ts in the source that ships with the download and repackage; or refine on VizForge and get a v2 that keeps everything you didn’t mention.

When native Power BI is enough (as of November 2026)

Power BI has no native Marimekko. A 100% stacked column chart is enough when the columns are roughly the same size or the size difference isn't the point, and a treemap is enough when the hierarchy matters more than the two-axis comparison. Choose a Marimekko when you need the reader to see both the size of each column and its mix in one rectangle.

Limits of Marketplace marimekko chart visuals

Marketplace Marimekko visuals typically fix the column sort to total-descending and the segment order to value-within-column, which shuffles colours between columns and makes the chart hard to read. Label thresholds, horizontal orientation and width-percent axis labels are frequently paid or absent, and fixed wells rule out a sort column.

The general trade-offs (per-user licensing, closed source, no new field wells) are the same for every chart type; see VizForge vs Microsoft Marketplace visuals for the full comparison.

Download, install and first render

The download is a standard .pbiviz plus the TypeScript source. Import it in Power BI Desktop (Visualizations pane → three dots → Import a visual from a file), add it to the page and bind the wells above. Then check the marimekko chart against this list before you connect the full dataset:

  • Segments in a different order in each column: switch the segment order setting to 'fixed across columns'.
  • Hairline columns at the right: many small categories; pool them into 'Other' in DAX or in the visual.
  • Labels covering tiny cells: raise the minimum cell area for labels.
  • Widths that don't sum to the full canvas: BLANK values for some column/segment pairs; that's correct, but check the measure.

When to use a marimekko chart

  • Market share analysis (industry column width, segment stack)
  • Customer-tier distribution across regions
  • Product-line revenue × channel breakdown
  • Portfolio exposure by asset class × geography
  • Headcount analysis by department × role level

Frequently asked questions

Will the visual work in Power BI Service, Premium and embedded reports?

Yes. A .pbiviz is a standard Power BI custom visual and renders the same in Desktop, the Service, Premium and Premium per User capacities, and embedded scenarios. Tenant admins can restrict custom visuals to certified or organisational ones; if yours does, publish the .pbiviz as an organisational visual rather than importing it per report.

What if I need to change the visual later?

Two paths. Refine on VizForge with an instruction such as "add a target line" and get a v2 .pbiviz that keeps everything you didn't mention; or open the TypeScript source that ships with every download in VS Code, edit it and repackage with pbiviz package.

Marimekko vs. 100% stacked bar — which one?

Stacked bar loses the column-width signal. Marimekko encodes TWO dimensions (width + stack proportion) so you see total-size differences between columns at a glance.

Can labels appear inside small cells?

Labels auto-hide below a configurable cell-area threshold. Prompt for 'show all labels, even small ones' to override.

Horizontal or vertical orientation?

Either. Prompt for 'horizontal Marimekko' to flip the axes — useful for long category names.

Can segments be sorted within each column?

Yes. Sort by value descending (default), or by a separate sort-key column you supply.

Put your marimekko chart on a designed page

Free Design Studio page layouts. Download the background, theme and PBIP project, then import the visual into the slot.

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 →

Guides for related charts

VizForge — AI-generated Power BI custom visuals.

Make the report.
Then make it yours.

The Design Studio, templates and tools are free with no account (exports carry a small VizForge mark until you sign in). Sign up when you want AI: 5 credits on us, no card.

Generated visuals are type-checked and built before you download them; one that fails the quality SLA refunds its credits. See all features or pricing.