Creating a line chart with multiple lines in Power BI allows you to compare different data series visually. This can be particularly useful when you want to track changes over time or compare performance metrics. Let's dive into the step-by-step process of creating a multi-line chart in Power BI.

Master Power BI Visualization Charts: A Guide | Manish Mohapatra posted on the topic | LinkedIn
Master Power BI Visualization Charts: A Guide | Manish Mohapatra posted on the topic | LinkedIn

Before we begin, ensure that you have your data ready in Power BI Desktop. For this example, let's assume you have sales data for two different products, 'Product A' and 'Product B', over the past year.

Small Multiple Line Chart Visual in Power BI - Power BI Docs
Small Multiple Line Chart Visual in Power BI - Power BI Docs

Preparing Your Data

To create a line chart with multiple lines, your data should be in a tabular format with each row representing a unique combination of categories (like date and product).

Line charts collection ✦ Hyper charts UI Kit
Line charts collection ✦ Hyper charts UI Kit

In our case, the data should look like this:

DateProductSales
2021-01-01Product A100
2021-01-01Product B150
2021-01-02Product A120
2021-01-02Product B180
the excel line chart is displayed in front of an open laptop screen with text reading excel line chart
the excel line chart is displayed in front of an open laptop screen with text reading excel line chart

Creating a Line Chart

Once your data is ready, follow these steps to create a line chart:

  1. Select the 'Sales' column and go to the 'Visualizations' pane.
  2. Click on the 'Line chart' icon.
an info board with graphs, pies and bar graphs on the bottom right corner
an info board with graphs, pies and bar graphs on the bottom right corner

Adding Multiple Lines

By default, Power BI will create a single line chart. To add multiple lines, you need to add the 'Product' column to the 'Axis' field.

  1. In the 'Fields' pane, drag the 'Product' column to the 'Axis' field.
  2. Now, you should see two lines on your chart, one for each product.
80 types of charts & graphs for data visualization (with examples)
80 types of charts & graphs for data visualization (with examples)

Customizing Your Chart

Power BI offers a wide range of customization options. You can change the chart title, add data labels, or even change the color of each line.

an excel dashboard is displayed on the computer screen and in front of it are two screens with graphs
an excel dashboard is displayed on the computer screen and in front of it are two screens with graphs
the data storytelling chart is shown with different types of text and images on it
the data storytelling chart is shown with different types of text and images on it
How to add a trend line in Power BI [STEP-BY-STEP GUIDE]
How to add a trend line in Power BI [STEP-BY-STEP GUIDE]
an info board with different types of dashboards and graphs on it, including data
an info board with different types of dashboards and graphs on it, including data
#learnfast #exceltips #datavisualization #continuousimprovement… | Learn Fast
#learnfast #exceltips #datavisualization #continuousimprovement… | Learn Fast
Post from How to Power BI
Post from How to Power BI
Mobile Charts Free UI Kit | Theme-UI
Mobile Charts Free UI Kit | Theme-UI
Got a Scatter Plot? Learn How to Add Marginal Histograms
Got a Scatter Plot? Learn How to Add Marginal Histograms
Statistic infographic chart design template set for dark theme. Representing quantity. V
Statistic infographic chart design template set for dark theme. Representing quantity. V
6 Must Know Line Chart variations for Data Analysis
6 Must Know Line Chart variations for Data Analysis
the product performance report is displayed in this screenshot
the product performance report is displayed in this screenshot
four different info boards with graphs and pies on them, all in green and blue
four different info boards with graphs and pies on them, all in green and blue
three different types of graphs with numbers and dots on the same line, one is yellow
three different types of graphs with numbers and dots on the same line, one is yellow
Making Small Multiples in Excel [Charting Technique] » Chandoo.org - Learn Excel, Power BI & Charting Online
Making Small Multiples in Excel [Charting Technique] » Chandoo.org - Learn Excel, Power BI & Charting Online
ggplot2 – Easy way to mix multiple graphs on the same page | R-bloggers
ggplot2 – Easy way to mix multiple graphs on the same page | R-bloggers
a set of four different info boards with graphs and pie chart on them, all in green and blue colors
a set of four different info boards with graphs and pie chart on them, all in green and blue colors
AutoFit Row Height in Excel
AutoFit Row Height in Excel
How to Create Custom Power BI Themes: Complete Overview
How to Create Custom Power BI Themes: Complete Overview
C++ How to Program: A Complete Guide for Beginners
C++ How to Program: A Complete Guide for Beginners
A Guide To Charts: Definition, Examples, and Types
A Guide To Charts: Definition, Examples, and Types

Changing Line Colors

To change the color of each line, follow these steps:

  1. Select the line chart to open the 'Formatting' pane.
  2. Expand the 'Series' section.
  3. Click on the color box next to each series (Product A and Product B) to change their colors.

Adding a Chart Title

To add a title to your chart:

  1. Select the line chart to open the 'Formatting' pane.
  2. Expand the 'Title' section.
  3. Enter your desired title in the 'Title text' field.

Creating a line chart with multiple lines in Power BI allows you to tell a story with your data. It's a powerful tool for comparing trends over time or across different categories. Now that you know how to create one, go ahead and start exploring your data!