How to Add Multiple Lines in a Power BI Line Chart (4 Ways)

Last month, a Contoso finance lead wanted revenue and profit on the same trend chart, and then a second view that compared 2026 with 2025 month by month. Both are a Power BI line chart with multiple lines, but they’re built in different ways, and mixing them up gives you a grayed-out Legend well.

In this tutorial, I’ll show you the four ways to add more than one line, when to use each, and how to format each line on its own. My sample is a Contoso Sales table with Order Date, Region, Revenue and Profit for 2025 and 2026.

Quick answer: Add two or more measures to the Y-axis well to get one line per measure, or keep one measure and put a category field (such as Year or Region) in the Legend well to get one line per value. You can’t do both at once: a chart with several measures in Y-axis doesn’t accept a Legend field.

Four ways to get multiple lines

Microsoft calls the first two methods static and dynamic series. Pick the one that matches your question:

MethodWells to useBest for
Several measures2+ fields in Y-axisRevenue vs Profit, Actual vs Target
Legend field1 measure in Y-axis + a field in LegendOne line per year, region or product
Secondary y-axis1 measure in Y-axis + 1 in Secondary y-axisMeasures with very different scales
Small multiplesA field in Small multiplesToo many lines to read on one chart

If you’re new to this visual, start with the Power BI line chart basics and come back here for the multi-line options.

Method 1: Add several measures to the Y-axis

  1. Select the Line chart icon in the Visualizations pane.
  2. Check Order Date in the Data pane. It goes to the X-axis as a Date Hierarchy. I removed Quarter and Day with the X next to each level, which leaves Year and Month.
  3. Check Revenue, then Profit. Both go to the Y-axis well, and each one becomes a line.
Power BI line chart with Sum of Revenue and Sum of Profit lines by year and month for 2025 and 2026

The legend lists Sum of Revenue and Sum of Profit. To show friendlier names, double-click a field in the well and rename it for this visual only. If your X-axis shows a date hierarchy you don’t want, the post on the Power BI line chart date hierarchy explains how to switch it to the plain date.

Method 2: Use a secondary y-axis for different scales

In the chart above, profit runs at $20K to $40K a month while revenue hits $250K, so the profit line looks flat. Move it to its own axis:

  • Remove Sum of Profit from the Y-axis well.
  • Drag Profit from the Data pane into the Secondary y-axis well.
Power BI line chart with Sum of Profit in the Secondary y-axis well next to Sum of Revenue

Now profit has its own scale on the right, and you can see it rise and fall with revenue. Name both axes in Format visual > Y-axis and Secondary y-axis > Title, or readers may compare the wrong numbers. When one series should be columns, a Power BI combo chart is often clearer.

Method 3: One line per category with the Legend

For a year-over-year chart, you want one line per year, not one per measure:

  1. Keep a single measure, Revenue, in the Y-axis well.
  2. Put only the Month level of Order Date in the X-axis.
  3. Drag the Year level of the Date Hierarchy into the Legend well.
Power BI line chart with Year in the Legend well showing 2025 and 2026 revenue lines by month

Power BI draws one line for 2025 and one for 2026. Add a third year to the data, and a third line appears on its own. That’s why it’s called a dynamic series. The same setup works with Region or Category in the Legend.

Keep it to about five lines. Past that, use a slicer so readers pick what they compare; see enable multiple selections in a Power BI slicer for the Ctrl+click and multi-select settings.

Method 4: Small multiples

Drag a field such as Region into the Small multiples well, and Power BI draws a grid of small line charts, one per region, each with the same lines. In Format visual > Y-axis > Range, keep Shared y-axis on to compare heights fairly.

If you want readers to choose the measure themselves, a field parameter (Modeling > New parameter > Fields) adds a slicer that swaps the lines, and you can sync slicers across report pages so the choice follows them.

Format each line separately

By default, every line has the same width and style. To change one line:

  1. Select the chart and open Format visual > Visual.
  2. Expand Lines. Under Apply settings to, pick the series in the Series drop-down, for example 2025.
  3. Under Line, set Line style to Solid, Dashed, Dotted or Custom, and adjust the Width.
  4. Change the Color under the same card, and turn on Markers if you want dots on each point.
Power BI Format pane Lines card with Apply settings to series 2025 set to a Dashed line style

I set last year to dashed, which makes the current year stand out. Turn on Series labels to put each name at the end of its line instead of in a legend. To color a line by value, for example red below a target, see conditional formatting in a Power BI line chart.

Troubleshooting multiple lines

  • The Legend well is grayed out or rejects the field: you have two or more measures in the Y-axis. Keep one measure, or drop the Legend.
  • Only one line shows: a slicer or filter limits the data, or the second measure is blank for those dates. Check the Filters pane.
  • One line looks flat: the measures have very different scales. Use the Secondary y-axis.
  • Missing points break the line: blank values create gaps. Return 0 in the measure if a gap should be a zero.
  • Lines are spiky and hard to read: the X-axis is at day level. Drill up to Month or remove the Day level.

For gaps that should read as zero, the steps to show zero values in a Power BI line chart work for every line on the chart.

Want to keep building trend charts? These are good next reads:

Frequently Asked Questions

How do I add multiple lines to a Power BI line chart?

Add two or more measures to the Y-axis well, or keep one measure and add a category field to the Legend well. Each measure or category value becomes its own line.

Why can’t I add a Legend to my line chart?

Line charts with more than one measure in the Y-axis don’t support a Legend field, as the Microsoft Learn line chart article notes. Remove the extra measures first.

How do I show two lines with different scales?

Put the second measure in the Secondary y-axis well. Power BI adds a second axis on the right with its own range.

Can I make one line dashed in Power BI?

Yes. In Format visual > Lines, choose the series under Apply settings to, then set Line style to Dashed or Dotted.

How many lines can a Power BI line chart show?

There’s no small fixed limit, but more than five or six lines gets hard to read. Use a slicer, small multiples or a field parameter instead.