How to create and customize Sankey diagrams in Power BI
Filip Barl
| Feb. 18, 2026
Feb. 18, 2026
Power BI is excellent at aggregating numbers, but visualizing flows between categories is where many reports fall short.
If you need to show how revenue moves through product lines, how customers transition between segments, or how costs break down across departments, a standard bar or column chart won't tell the full story.
That’s where Sankey diagrams shine. They make complex relationships immediately intuitive by showing both structure and magnitude in a single visual.
We are excited to share a deep dive into our Sankey Diagram for Power BI, a Microsoft-certified custom visual that brings beautiful, interactive Sankey diagrams right into your Power BI dashboards and reports.
What you'll learn
- How to add the SankeyArt visual to your Power BI report
- Which fields you need to build a Sankey diagram
- How to structure your data for diagrams with several levels and branches
- How to show percentages and year-over-year changes
- How to adjust key settings in the Format pane (Branding, Layout, Flows, Nodes)
- A few practical tips to improve readability and fine-tune your diagram

Installation
Getting started takes less than a minute - simply visit the Microsoft Marketplace from your Power BI app, search for "SankeyArt" and add the "Sankey Diagram for Power BI" visual. The visual will be automatically added to your Power BI environment and available in the visualizations pane. Or you can just grab it directly from the Microsoft Marketplace listing.
The free version works right away with a watermark, no credit card, no sign-up. When you're ready to remove it, you can activate a 30-day free trial. Licenses are managed through Microsoft's payment system, so your IT admin can assign them just like Office licenses.
Getting started
To create your first Sankey diagram in Power BI, add the visual to your canvas and connect your data. The visual needs three fields:
- Source: the node each flow starts from (e.g. "Revenue")
- Target: the node each flow goes to (e.g. "Cost of revenue")
- Amount: the size of the flow
And has two optional ones:
- Comparison: the same amount for another period, e.g. last year, to show year-over-year changes
- Sorting: a number that sets the order in which flows are stacked (see Order of flows below)
Each row of your data is one flow, and all flows go in the same table, whichever level of the diagram they belong to. See Structuring your data below for how rows connect into levels and branches.
If you want to see a working example right away, you can download our sample .pbix file from the Marketplace listing. Just click "Download sample" and open it in Power BI Desktop. It comes with sample data already connected, so you can explore the visual and its settings without having to set anything up yourself.
Once you have a visual on the canvas with data connected, you're ready to start customizing.

Structuring your data
The visual expects one table with one row per flow. A node is just a name: when the same name appears in several rows, those rows meet at that node. That's all it takes to build branches, joins and as many levels as you need.
- Branches: repeat a Source. Revenue → Cost of revenue and Revenue → Gross profit split Revenue into two flows.
- Joins: repeat a Target. iPhone → Products, Mac → Products and iPad → Products merge into Products.
- Levels: use a Target as the Source of another row. iPhone → Products and Products → Revenue put Products in the middle, which adds a column to the diagram.
Here are the first 10 rows of Apple's FY24 income statement, in billions of dollars:
| Source | Target | Amount |
|---|---|---|
| iPhone | Products | 201.2 |
| Mac | Products | 30.0 |
| iPad | Products | 26.7 |
| Wearables & accessories | Products | 37.0 |
| Products | Revenue | 294.9 |
| Services | Revenue | 96.2 |
| Revenue | Cost of revenue | 210.4 |
| Revenue | Gross profit | 180.7 |
| Gross profit | Operating expenses | 57.5 |
| Gross profit | Operating profit | 123.2 |
To see a full Apple income statement table next to the diagram it creates, with Products as a Target in four rows and a Source in the fifth, see Data structure in Power BI in our help center.
If your diagram doesn't look the way you expect, check these:
- Names must match exactly. "Gross Profit" and "Gross profit" are two different nodes.
- Amount must be a number column, not text.
- Middle nodes show the larger side. A node with flows in and out shows the larger of its summed inflows and summed outflows. Ideally the two are equal.
- No loops. A flow back to a node on its left is drawn faintly. If the same step appears at two stages, give it two names, e.g. "Q1: Pending" and "Q2: Pending".
- Up to 100 flows. The visual shows up to 100 Source → Target pairs.
Order of flows
This one's not immediately obvious, but it's important: you can control the vertical order in which flows are stacked. Just add an integer column to your dataset (1, 2, 3, …) and drag it into the Sorting field. The diagram will stack flows from top to bottom in that sequence.
This is especially useful for P&L Sankeys where you might want profit flows to show up at the top.
Comparison and percentages
Comparison: the same amount for another period
Put last year's amount in the Comparison field: last year's column, or a measure like Amount PY = CALCULATE(SUM(Flows[Amount]), SAMEPERIODLASTYEAR('Date'[Date])). Then choose what the labels show in Layout → Node labels → Comparison:
| Option | The comparison line shows | Example: Apple's Gross profit, FY24 vs. FY23 |
|---|---|---|
| Value (default) | The comparison amount | $169B |
| Change in % | The change, in % | +7% |
| Change | The change, as a difference | +$12B |
| Hidden | Nothing |
Percentages: use the label options, not a measure
A percentage measure in Amount or Comparison gets added up per node, so middle nodes show the wrong percentage, often 100%. Keep Amount as the plain amount and choose a percentage in Layout → Node labels → Amount:
| Option | The amount line shows | Example: Apple's P&L, FY24 |
|---|---|---|
| Value (default) | The node's amount | Gross profit: $181B |
| % of neighbor | Share of the node it flows into, or comes from, when there's just one (otherwise the amount). In a funnel, the conversion from the step before | Gross profit: 46% (of Revenue) |
| % of highest | Share of the largest node. In a P&L, the margin | Net profit: 24% |
| Value (% of neighbor) | Both | Gross profit: $181B (46%) |
| Value (% of highest) | Both | Net profit: $94B (24%) |
| Hidden | Nothing |
Settings overview
The Format pane has four main sections: Branding, Layout, Flows and Nodes. Let's go through each of them. Without a license, there's also a Watermark section, which goes away once a license is assigned.
Branding
This is where you control colors and fonts across the whole diagram.
- Default color: Sets the baseline color for all nodes. Any node that doesn't have a specific color assigned will use this.
- Auto colors 🌟: This is one of our favorite features. You can define up to four auto color rules, each with a color and a list of match keywords. When a node's name contains one of the keywords, it automatically gets that color. For example, you could set Auto color #1 (green, ON) to match "profit, income, earning" and Auto color #2 (red, ON) to match "expense, cost, loss". This way, all your profit-related nodes automatically show up in green and all cost-related nodes in red, without you having to color each one individually. You get four auto color slots, each with its own toggle so you can easily turn them on and off.
- Node names font: Set the font family, size, bold/italic/underline, and color for node labels. This is where you'd apply your corporate typeface.
- Amounts font: Same controls for the numeric values displayed on nodes.
- Comparisons font: Controls the font for comparison values (like year-over-year changes).


Layout
This section controls the spatial arrangement of the diagram.
- Node labels: Toggle labels on or off entirely. When on, you can choose the label position from a dropdown.
- Amount and Comparison, under Node labels: choose what the two number lines of each label show: the value, a percentage, the change, or nothing (see Comparison and percentages above).
- Large values suffix, under Node labels: off by default. When on, large numbers get shortened with a suffix (like "1.2M" instead of "1,200,000"). It overrides the decimal places set in Data format.
- Node width: Controls how wide each node bar is. Wider nodes make the diagram feel more substantial, narrower ones leave more room for flows.
- Node height: Sets the minimum height of each node. Increase this if smaller nodes are getting too thin to read comfortably.
- Node spacing: The vertical gap between nodes in the same column. Decrease it to pack nodes more tightly, increase it to give the diagram more breathing room.

Flows
By default, each flow takes the color of the node it flows into. Under Flows → Colors you can color the flows yourself:
- A color per flow: each flow gets its own color picker, e.g. Gross profit → Operating profit.
- All flows: one color for every flow. Or click fx to color them with Power BI's conditional formatting: a Gradient based on a measure such as Amount or Comparison, or Rules with thresholds. All flows takes priority over the colors per flow, which are hidden while it's set.

Nodes
You customize individual nodes right on the diagram. In edit mode, hover over a node and click the pencil button to open its popup:
- Color: pick one of your Branding colors, another color already in the diagram, or any color. This takes priority over auto color rules, and Use automatic color goes back to them.
- 2nd line custom text: replaces the amount. Leave it empty to hide the amount.
- 3rd line custom text: replaces the comparison. Leave it empty to hide it.
- Reset position: shown once you've dragged the node, puts it back where the layout places it.
This is especially handy for fine-tuning. Maybe auto colors handle 90% of your nodes correctly, but you need a specific node to stand out differently. Or maybe you want to hide the amount on an intermediate node like "Gross Profit" where the value is implied by the flows.

Reset, next to the node's name, undoes all of the node's changes. Changes are kept by node name, so they stay when you filter the report. To undo them for every node at once, use Reset all node customizations in the Nodes section of the Format pane.

Tips & tricks
Drag and drop nodes
In edit mode, you can click and drag any node on the canvas to reposition it. This is really useful for fine-tuning the layout after the automatic positioning does its thing. For example, if two nodes end up too close together or you want to emphasize a particular flow by moving its source node higher up, just drag it where you want it. The flows redraw automatically to follow the node's new position, and Reset position in the node's popup puts it back.
Changing the number format
This one trips people up because it's not in the Visual tab. To change how amounts are formatted, go to the General tab in the Format pane and open "Data format". There you can set the format to Currency, pick your currency format, e.g. $ English (United States), toggle the thousands separator, and set the number of decimal places. You can also apply these settings to specific measures using the "Apply settings to" dropdown.
If the decimal places you set here don't show up, check that Layout → Node labels → Large values suffix is off: it overrides them.

Data with stages as columns
If your data has one row per customer and one column per stage (Stage 1, Stage 2, Stage 3…), reshape it into Source and Target rows before you add it to the visual, for example in Power Query:
- One set of flows per pair of neighboring stages: for Stage 1 → Stage 2, Stage 2 → Stage 3 and so on, take the earlier stage as Source and the later one as Target.
- Leave out empty values: drop the rows where Source or Target is empty, e.g. for customers who stopped or skipped a stage.
- Keep the stages apart: if the same value can show up at different stages, add the stage to it, e.g. "Stage 2: Drug A". Otherwise the flows loop back to earlier nodes.
- Combine and count: append the pairs into one table, then group it by Source and Target and count the rows as the Amount. To show a value such as revenue instead, sum it.
Then drag Source, Target and Amount from the combined table into the visual.
Security
Our Power BI visual is Microsoft-certified, meaning it passed Microsoft's review for security, performance, and compliance. All data is processed entirely within Power BI. Nothing is sent to our servers or any third-party services. Your financial data stays where it belongs. See how in our Trust Center.

👉 Try it out
Install the free version from the Marketplace to get started, no credit card needed. When you're ready for the full experience, start a 30-day free trial to remove the watermark.
We'd love to hear how you're using it - reach out anytime at support@sankeyart.com.
