Power BI How-To
How to make a gantt chart in Power BI
Build a gantt chart in Power BI: field wells, a worked example, when the native visual is enough, and how to generate the .pbiviz without code.
By Nawaf Sharaf · Founder & Reliability Engineer · Updated
A Gantt chart is a bar per task on a shared date axis: start on the left, end on the right, grouped by phase or by owner. In Power BI it turns a project table into a schedule the sponsor can read without opening the planning tool, and because it sits on the data model, the same page can slice it by team, region or status.
This guide builds a Gantt from a task table with Start and End dates, covers the three columns people usually forget (an explicit sort order, a status for colour, and a dependency ID), and explains when the native Gantt that Power BI added in October 2026 is enough and when a custom one is still the better call.
Step-by-step
- 1
Shape the data for the gantt chart
Required columns: Task (text), Start (date), End (date). Optional: Swimlane (text) for grouping, Status (text) for color-coding, Dependency (text) for a linked-task ID. In the finished visual those columns land in the Task, Start, End, Swimlane, Status / Milestone wells, so name them that way from the start.
- 2
Load a small sample into Power BI Desktop
Import the four launch tasks as a table with Start and End typed as Date. Keep the Launch row, whose Start equals its End, so you can confirm the milestone diamond renders as well as the bars.
- 3
Describe the gantt chart and generate the .pbiviz
On VizForge, describe the chart in plain English and say what matters for this one: grouping: by phase, by owner, or none; and whether groups should be collapsible; whether a task with Start = End should draw as a milestone diamond; colour rule: by status, by swimlane, or overdue-only highlighting (End before today and not complete). The pipeline writes the TypeScript, type-checks it and packages a .pbiviz.
- 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
Bind the field wells
Task: Text column: the row label (task or deliverable name). Start: Date column. End: Date column (or a Duration measure in days if you prefer). Swimlane: Optional text column: phase, team or owner. Status / Milestone: Optional text or flag column.
- 6
Check the first render, then format
Empty chart: Start or End is text, not a date. Change the type in Power Query and refresh. Bars in the wrong order: add an explicit SortOrder column and set 'Sort by column' on Task. Then open the formatting pane and set row height and bar corner radius (the difference between a 15-row page and a 60-row scroll).
Field wells the generated gantt 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.
| Well | Takes | Note |
|---|---|---|
| Task | Text column: the row label (task or deliverable name). | One row per task. If the same task name appears under two phases, add the phase to the label or use a key column. |
| Start | Date column. | Must be a true date type; text dates are the most common cause of an empty chart. |
| End | Date column (or a Duration measure in days if you prefer). | End before Start draws a zero-width bar; add a DAX check. |
| Swimlane | Optional text column: phase, team or owner. | Decides the grouping bands. Leave empty for a flat list. |
| Status / Milestone | Optional text or flag column. | Drives bar colour and, for milestones, a diamond instead of a bar. |
Worked example
A product launch with two workstreams and one milestone.
| Task | Start | End | Swimlane | Status |
|---|---|---|---|---|
| Design review | 2026-01-12 | 2026-01-23 | Product | Complete |
| Build v1 | 2026-01-26 | 2026-03-06 | Engineering | On track |
| Beta | 2026-03-09 | 2026-03-27 | Product | At risk |
| Launch | 2026-04-01 | 2026-04-01 | Product | Milestone |
What the chart draws: Two swimlanes (Product, Engineering), three bars coloured by status and one diamond for Launch, because Start equals End and Status is Milestone. A vertical 'today' line crosses whichever bar is in progress.
Live preview
The AI alternative: Describe your gantt chart in plain English and VizForge generates the .pbiviz, source included. 5 free credits on signup, no card required.
Generate a gantt 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 gantt chart, say:
- Grouping: by phase, by owner, or none; and whether groups should be collapsible.
- Whether a task with Start = End should draw as a milestone diamond.
- Colour rule: by status, by swimlane, or overdue-only highlighting (End before today and not complete).
- The date axis: weeks, months or quarters, and whether to show a 'today' line.
- Whether dependency arrows are needed, and which column holds the predecessor task.
Example VizForge prompt
Gantt chart for project tasks. Show bars grouped by swimlane (team name), milestone diamonds for release dates, red bars for overdue tasks, and light-blue bars for on-track. Today line in dark grey.
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 gantt chart the options that earn their place are:
- Row height and bar corner radius (the difference between a 15-row page and a 60-row scroll).
- Axis granularity (day/week/month/quarter) and the first day of the week.
- Today-line colour and visibility.
- Colour per status value, so a theme or conditional formatting can take over.
- Label placement: inside the bar, at the right end, or in a fixed left column.
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's October 2026 release added a native Gantt visual in preview. It groups tasks in up to three category levels, shows milestones (a start date with no end) as markers, and has progress and zoom; if that covers your schedule and you can live with the preview's formatting, start there: it needs no import and is governed like every other built-in visual. A custom Gantt earns its place when you need dependency arrows, a baseline (planned vs. actual) drawn under each bar, more than 1,000 rows, resource swimlanes with capacity shading, or a today line.
Limits of Marketplace gantt chart visuals
Marketplace Gantts decide the row model for you: most want exactly one row per task and treat a second date range (planned vs. actual) as a separate visual. Dependency arrows, baselines and milestone shapes are the features most often moved behind a paid tier, and the date axis is usually fixed to the vendor's zoom levels. You also cannot add a well, so a 'percent complete' fill inside the bar is only possible if the vendor built it.
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 gantt chart against this list before you connect the full dataset:
- Empty chart: Start or End is text, not a date. Change the type in Power Query and refresh.
- Bars in the wrong order: add an explicit SortOrder column and set 'Sort by column' on Task.
- All bars the same colour: the Status column isn't in its well, or its values don't match the colours you described.
- Bars that look one day short: End dates are stored as midnight; either add a day or tell the visual End is inclusive.
When to use a gantt chart
- Project schedules with phases, tasks, owners, and start/end dates
- Resource capacity lanes (each person or team as a swimlane)
- Product launch timelines with milestones as diamonds
- Campaign calendars — marketing, content, PR activity across quarters
- Construction / manufacturing work-order schedules with dependency arrows
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.
Does the Gantt render dependency arrows between tasks?
Yes — if your data has a Dependency column referencing another task's ID, the AI-generated visual draws arrows between the bars. You can style them in the formatting pane.
Can I show a 'today' line?
Yes. By default the Gantt draws a vertical line at TODAY(); you can toggle or re-style it in the formatting pane.
Will the Gantt scroll for long projects?
Yes. The visual auto-sizes vertically to the number of rows and horizontally to the date range; Power BI's built-in scroll wraps both axes.
Can I group by resource instead of phase?
Yes — swap the Swimlane column. Regenerate with a prompt like 'group by resource name instead of project phase' and VizForge produces a new .pbiviz.
Put your gantt chart on a designed page
Free Design Studio page layouts. Download the background, theme and PBIP project, then import the visual into the slot.
Project & PMO template
Project PortfolioHas a slot for it: “Portfolio roadmap”.
CV & portfolio template
CV & PortfolioHas a slot for it: “Career timeline”.
Real estate & workplace template
Real Estate Property PortfolioHeader band with logo, 5 KPIs, tall NOI map left, lease-expiry columns + occupancy bars + rent roll right
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
Reference
Data shape, DAX measures, related visuals.
Index
One guide per Power BI visual type, plus the Design Studio guides.
VizForge — AI-generated Power BI custom visuals.