A line chart for business time series that answers the question the meeting is about: are we on plan? Actual against plan and prior year with the gap shaded green or red, the plan carried on past the last actual month, the last value at the end of every line, and an empty month drawn as a gap, never as a zero. Pro adds the context around the numbers: events and annotations on the timeline, the variance in the end label, small multiples, “Show values as” and six collection styles.
Video on YouTube: https://www.youtube.com/watch?v=R7EQ3PDNhMs
Read the actual line against the plan: the shaded area is the gap, split where the lines cross. Past the “Actual | Plan” mark only the plan (or forecast) continues. A break in a line is a period without data, not a zero.
Axis = Month, Values = Sales, Plan = Sales plan. Turn on Gap shading: months above plan in green, below in red. The plan carries on after the last actual month, so the rest of the year is on the same chart.
Prior year = a time-intelligence measure such as CALCULATE([Sales], SAMEPERIODLASTYEAR('Date'[Date])). With Pro, the end label can show the variance: “+4.2% vs PY”.
Values = Sales, Legend = Region, Secondary values = Margin %. Each region has its end label with its last value, and the margin reads on the right-hand axis.
A daily date on Axis, a Trend line (moving average of 7 periods) and Peaks & lows. Ctrl + wheel zooms into a month; the Y axis fits the zoomed range.
An Events table with Date and Event, related to the calendar: each event is a vertical line with its text, so the reason for a jump is on the chart.
Show values as → Index: every line starts at 100 in the first visible period, so a small region that grew 30% is visibly ahead of a large one that grew 5%.
| Field | Kind | Required / limit | What it does |
|---|---|---|---|
| Axis | Grouping | Yes, one field | A date gives a real time axis: points sit at their true distance and a missing period is a gap. A date hierarchy, text or numbers give a category axis with evenly spaced points. A hierarchy gives drilldown. |
| Legend | Grouping | No, one field | One line per value (region, brand, team) for every measure. Colours, line style, width and markers are set per legend value (first 40 legend values) and stay when a filter hides part of the data. |
| Values | Measure | Yes, up to 6 | One line per measure, on the left axis. |
| Secondary values | Measure | No, up to 3 | Measures in other units (margin %, units) on a right-hand axis. |
| Plan | Measure | No, one field | Drawn as a thin dashed line. With gap shading on, the area between actual and plan is green above and red below. After the last actual period it carries on, marked “Actual | Plan”. |
| Prior year | Measure | No, one field | Same as Plan, with its own dash. Gap shading uses it when there is no Plan. |
| Forecast | Measure | No, one field | Your own forecast measure, drawn dashed; it also carries on after the last actual period. |
| Target line | Measure | No, one field | A horizontal line when the target is the same for every period, or a stepped line when it changes by period. |
| Events | Measure | No — Pro, one field | A vertical line with its text wherever the field is not blank. A text column set to First, or a text measure. |
| Annotations | Measure | No — Pro, one field | A note on the line wherever the field is not blank (first measure). A text column set to First, or a text measure. |
| Small multiples | Grouping | No — Pro, one field | One chart per value (region, plant), with a shared or separate Y axis. |
| Tooltips | Measure | No | Extra measures in the tooltip. Report page tooltips are supported. |
Power BI sends the data in parts of 30,000 combinations of axis, small multiples panel and legend value; the visual asks for up to ten more parts. If the data is still incomplete, a note in the visual says so. The limits are the same in the free version and in Pro.
| Capability | Free | Pro |
|---|---|---|
| Real date axis: an empty period is a gap, never a zero (Break, Connect or Zero, your choice) | ✓ | ✓ |
| Several measures, a legend and a secondary axis at the same time | ✓ | ✓ |
| End labels with the last non-empty value, kept apart so they do not overlap | ✓ | ✓ |
| Plan, prior year and forecast as their own fields | ✓ | ✓ |
| Gap shading between actual and plan (or prior year), green above and red below, split exactly where the lines cross | ✓ | ✓ |
| Split actual and plan: the plan carries on dashed after the last actual period, marked “Actual | Plan” | ✓ | ✓ |
| Target line from a measure, flat or stepped | ✓ | ✓ |
| Trend line (linear or moving average) and peaks & lows | ✓ | ✓ |
| Smooth lines that never overshoot the data (monotone curve) | ✓ | ✓ |
| Zoom with Ctrl + mouse wheel or the keyboard, optional zoom slider, Y axis that fits the zoomed range | ✓ | ✓ |
| Sort categories, source note under the chart | ✓ | ✓ |
| Colour, line style, width and markers per series (first 40 legend values); conditional formatting (fx) on the series colour (without a legend) and on the target line | ✓ | ✓ |
| Report theme and Classic templates; setup guide and start screen | ✓ | ✓ |
| Cross-filtering by point, or by whole series with a Legend field (up to 1,000 rows per selection), multi-select, highlight, bookmarks, drilldown, context menu, report page tooltips | ✓ | ✓ |
| Keyboard navigation, screen-reader descriptions, high contrast and an Accessibility card (high contrast on demand, focus outline, minimum text size) | ✓ | ✓ |
| Number format of the measure, dynamic format strings included; format on the canvas; 12 languages | ✓ | ✓ |
| Variance in the end label (“+4.2% vs plan” or the absolute difference) | — | ✓ |
| Six collection styles: Boardroom, Ledger, Editorial, Signal, Aurora, Terrace | — | ✓ |
| Small multiples | — | ✓ |
| Events: vertical lines with their text, from a column of your own Events table or a measure | — | ✓ |
| Annotations pinned to a point | — | ✓ |
| Show values as: index (first visible period = 100), % change from the first visible period, running total | — | ✓ |
Turn on a Pro capability without a licence while editing and it is drawn working on your own data under a “Pro preview” watermark that names it. Reading view shows the free chart. Pro is sold per user on Microsoft AppSource.
Two events in the same period? Use a measure instead:
Event text = CONCATENATEX ( VALUES ( Events[Event] ), Events[Event], " · " )
Annotations work the same way: any text column set to First, or a text measure, in Annotations pins a note to the first measure's line.
| Card | Settings |
|---|---|
| Style template | Report theme (default: the colours of your report theme, like a native visual), Classic, and the six collection styles Boardroom, Ledger, Editorial, Signal, Aurora and Terrace (Pro). A template only fills what you have not set yourself. Setup guide: turn it back on to see the guide again. |
| Lines | Line width; markers (auto, on, off) and marker size; missing values — Break the line, Connect over the gap, or Zero; smooth lines; Show values as (Pro): value, index (first visible period = 100), % change from the first visible period, running total; the base follows the zoom. With Show values as on, the target line is not drawn (an absolute target has no index), and a series whose base value is 0 is left empty. Colors: colour, line style (solid, dashed, dotted), width and markers per series (first 40 legend values), kept by legend value when a filter hides part of the data. Without a Legend field the colour accepts conditional formatting (fx) rules, evaluated per point on the markers. |
| End labels | Show; content — name and value, value, or name; maximum labels; text size; use the series colour or a fixed colour; variance vs plan or prior year (Pro): % or absolute. |
| Events (Pro) | Show; line colour and style; show labels; label position top or bottom; text size. The full text is always in the tooltip. |
| Annotations (Pro) | Show; text size and colour; background colour and opacity. |
| Plan, prior year and forecast | Show; line colour — grey or the series colour; width; show in legend; gap shading with the colours above and below the reference and its opacity; split actual and plan. |
| Target line | Show; colour, with conditional formatting (fx) rules per period; width; line style; label and text size. |
| Trend line | Show; type — linear or moving average, with the number of periods; apply to all series or the first; width; opacity. The linear trend runs from the first to the last point: it is not a forecast. |
| Peaks & lows | Show; mark the highest, the lowest or both; first series or all; text size. Calculated on the visible (zoomed) range. |
| Axes | X axis: show, text size and colour, title, sort categories (data order, value descending or ascending, alphabetical — category axes only). Y axis: show, text size and colour, title, start at zero, gridlines and their colour. Secondary Y axis: show, text size, title, start at zero. |
| Legend | Show; position top or bottom; text size and colour; title. |
| Small multiples (Pro) | Columns (0 = automatic); space between panels; title size, colour, bold and alignment; panel background and border; shared Y axis. |
| Source note | Show; text; size; colour; alignment. A line under the chart for the data source. |
| Interactions | Zoom; Y auto-fit when zoomed; zoom slider. |
| Accessibility | High contrast — Auto (follow Windows) or On, which draws the high-contrast look without a Windows contrast theme; focus outline colour and width (1–6 px) for keyboard focus; minimum text size (7–24 px), a floor for every text in the chart: axes, legend, end labels, events, annotations, source note and notices. |
Format on the canvas: in format mode, click the lines, the plan and gap shading, the end labels, the axes, the legend, the target and trend lines, events, annotations or the source note to format them where they are.
The line is drawn from your data: a zero is a real zero returned by the measure. Measures that wrap the result in + 0 or COALESCE(…, 0) turn a blank into zero; return BLANK() instead and the month is a gap. If you do want the line to go to zero, choose Lines → Missing values → Zero; Connect draws straight over the gap.
The time axis needs a single date column (Date data type) on Axis. A date hierarchy (Year, Quarter, Month) gives evenly spaced categories, like any category axis. In the field well, choose the date field itself instead of Date Hierarchy.
A text column in Events or Annotations is summarised as Count by default, so the visual receives numbers. In the field well, open the field menu and choose First. Or use a text measure.
With First, Power BI sends one text per period. Use a measure that joins them: Event text = CONCATENATEX ( VALUES ( Events[Event] ), Events[Event], " · " ).
Power BI sends the data in parts of 30,000 combinations of axis, small multiples panel and legend value. The visual asks for the rest automatically, in Power BI Desktop and in the service, up to ten more parts. If the data is still incomplete after that, it draws what arrived and says so. Filter the page, use a coarser axis (week instead of day) or fewer legend values.
Selecting a series sends every row of that series to the rest of the page. Above 1,000 rows the selection is still shown in the chart, but other visuals are not filtered, and the notice says how many rows were selected. Select fewer series or points, use a coarser axis (month instead of day), or filter with a slicer instead.
That was a fault of the first version when the axis or the legend made several columns: selecting a series filtered a single row. From this version a series selected in the legend, on the line or on its end label filters the whole series.
Fixed in this version: the colour, line style, width and markers of a series (first 40 legend values) are kept by legend value, so a slicer that hides the first period of the series no longer resets them. Set the colour once more if it was lost with the first version.
Reports made with the first version are updated once, the first time they are opened for editing with this version and saved (republish it to the service), to keep the series colours by legend value. Reading view saves nothing. After that save, the update does not happen again.
Some rows have a blank date. They cannot be placed on a time axis, so they are left out and counted in the note. Check the relationship between your fact table and the calendar.
Both need a Plan or a Prior year field: without a reference there is nothing to compare against. Gap shading is in Plan, prior year and forecast → Gap shading. It is not drawn at very small sizes (compact and sparkline layouts).
Zoom uses Ctrl + mouse wheel (Cmd on a Mac) or the + and − keys with the chart focused. It is off in format mode, when Interactions → Zoom is off, or when the report author turned interactions off. Esc or the Reset zoom button goes back to the full range.
A Pro feature is turned on and you are editing without a licence. Turn it off to remove the watermark, or get a licence. Readers of the report without a licence see the free chart, with no watermark.
Because a missing value is not a zero. A line that drops to zero in a month without data tells the meeting that sales collapsed, when the data was simply not there. If your measure returns 0 instead of BLANK(), the month is a real zero and is drawn as one; return BLANK() and it is a gap. By default the line stops and starts again; you can connect over the gap or draw zero in Lines → Missing values.
The area between the actual line and the reference (Plan, or Prior year when there is no plan) is green where actual is above and red where it is below, split exactly at the point where the lines cross. For costs, where lower is better, swap the two colours in Plan, prior year and forecast. The Forecast field is never used for gap shading. Gap shading is not drawn at very small sizes, when the visual switches to its compact or sparkline layout.
When the plan or forecast has values after the last actual period, that part is drawn with a longer dash and a thin vertical line marks Actual | Plan. Turn it off in Plan, prior year and forecast.
Two events in the same period? Use a measure instead: Event text = CONCATENATEX ( VALUES ( Events[Event] ), Events[Event], " · " ). Events are part of Pro.
No. The linear trend is a least-squares line from the first to the last point of the series, and it is not extended. The moving average looks back N periods inside each stretch of the line, so it does not cross a gap. For a forecast, use your own measure in Forecast.
Axis, Legend and Small multiples take one field each; Values up to 6 measures; Secondary values up to 3; Plan, Prior year, Forecast, Target line, Events and Annotations one each. Power BI sends the data in parts of 30,000 combinations of axis, panel and legend value; the visual asks for up to ten more parts, and if the data is still incomplete a note in the visual says so. A selection can filter other visuals with up to 1,000 rows. The limits are the same in the free version and in Pro.
With Show values as (Pro) set to index, % change or running total, the target line is not drawn: an absolute target has no index. Index and % change use the first visible period of each series as the base, so the base moves when you zoom. If that base value is 0, there is nothing to divide by and the series is left empty.
Yes: the number format of each measure from the model, dynamic format strings included, in the report's language. Show values as (Pro) uses its own format for index and %.
Yes. Report theme is the default template: series colours and text come from your theme, like a native visual. Colours you set yourself always win.
With a Legend field, the whole series: every period of that legend value, up to 1,000 rows per selection. Click its legend item, its line or its end label. With small multiples, a click in a panel selects the series in that panel only, and the legend selects it in every panel. A click on a point filters that point only. Right-click on a series opens the Power BI context menu for the series; right-click on a point opens it for that point.
Bookmarks keep the series and points you select and the filters of the page. Like every Power BI visual, they do not keep formatting.
While you edit a report without a licence, Pro features you turn on are drawn working on your own data under a watermark that names them, and Power BI shows its licence notice. Reading view shows the free chart. With small multiples, the preview draws the first 4 panels and reading view without a licence shows the first panel. Where Power BI provides no licence information (for example when you are not signed in to Power BI Desktop), the free chart is shown.
On the visual's Microsoft AppSource page, choose Buy now (not Install free). Licences are per user and managed by Microsoft; every person who should see the Pro features needs one. Restart Power BI Desktop after the licence is assigned. See tcviz.com/licensing.
No. The visual makes no network requests and stores nothing outside your report. The links on the start screen open only when you click them, through Power BI.
Ask in GitHub Discussions, report a bug in GitHub Issues, or write to support@tcviz.com. Product page: tcviz.com/product/line-chart.