How to Add an Average Line in Power BI

Cody Schneider8 min read

Adding an average line to a chart is a simple way to instantly give your data context. Instead of just showing raw numbers, a reference line helps you and your viewers quickly see which data points are outperforming and which are lagging. This guide will walk you through the easiest way to add an average line using Power BI's built-in tools, as well as a more flexible method using a simple DAX formula for when you need more control.

Why Bother Adding an Average Line?

A chart without reference points can be difficult to interpret quickly. You might see a line chart of daily sales fluctuating up and down, but without context, you don't really know if a "good" day is truly exceptional or just slightly better than normal. An average line solves this problem by providing a clear visual benchmark.

Here’s why it’s so effective:

  • Instant Context: It shows the central tendency of your data at a glance. Viewers can immediately tell if a particular period, category, or campaign performed above or below the norm.
  • Performance Measurement: It acts as a baseline. Are your monthly sales figures consistently above the annual average? Are specific marketing channels driving results that are better than the typical channel performance?
  • Simplifies Trend Analysis: An average line helps smooth out the noise of day-to-day or week-to-week volatility, making it easier to spot meaningful long-term trends relative to the average.

Think of it as the simplest KPI (Key Performance Indicator) you can add to a visual. It transforms a simple data representation into a genuine performance report.

Method 1: The Easy Way with the Analytics Pane

For most standard charts, like column charts, bar charts, and line charts, Power BI has a built-in feature that lets you add an average line in just a few clicks. This is the fastest and most common method.

Let's walk through an example. Imagine you have a clustered column chart showing total revenue by month.

Step 1: Select Your Visual First, click on the chart you want to modify to make it active. When you select it, the Visualizations pane on the right-hand side will update to show the settings for that specific chart.

Note: For this to work, your visual must support an average line. The Analytics Pane is available for bar, column, line, and scatter charts, among others. It won't be available for visuals like maps, pie charts, or slicers.

Step 2: Open the Analytics Pane In the Visualizations pane, you'll see a few icons at the top. The one that looks like a magnifying glass is the Analytics pane. Click it to open up a new set of options for adding reference lines to your visual.

Step 3: Add an Average Line You should now see a list of different analytical lines you can add, such as a Constant line, Min line, Max line, and of course, an Average line.

Click on "Average line" to expand the section, then click the + Add line button. As soon as you click it, Power BI automatically calculates the average of the data in your chart and adds it as a dotted horizontal line.

Step 4: Customize Your Line Once the line is added, a new set of formatting options will appear. Here, you can configure the average line to match your report's design and make it easier to read:

  • Color: Change the color of the line. A subtle grey or a contrasting color often works well.
  • Transparency: Adjust how transparent the line is.
  • Style: Choose between a dashed, dotted, or solid line. A solid line can sometimes feel too heavy, so dashed is often a good default.
  • Data label: Toggle this 'On' to display the actual average value next to the line. This is highly recommended so viewers don’t have to guess the value. You can also change the label's color and display units (e.g., thousands, millions).

That's it! This method is perfect for adding a quick, dynamic average that adjusts based on the filters and slicers affecting your chart.

Method 2: Gaining More Control with a DAX Measure

The Analytics Pane is fantastic for its simplicity, but it does have some limitations. What if you want to show an average line that doesn't change when you interact with a slicer? For example, you might want a line showing the average annual revenue that remains constant even as you filter down to specific months or regions. Or what if your chart type doesn't support the Analytics Pane?

This is where DAX (Data Analysis Expressions) comes in. By writing a simple measure, you can create a completely customized average line that behaves exactly as you want it to.

Step 1: Write the DAX Measure for Your Average

First, you need to decide what kind of average you want. There are two main scenarios:

Scenario A: A Normal, Filter-Responsive Average

If you just need an average for a chart type that doesn't natively support the Analytics Pane line, the formula is very simple. We'll use the AVERAGE() function.

Right-click your table in the Fields pane and select "New measure" (or click the "New Measure" button in the top ribbon). Then enter a formula like this:

Monthly Average Revenue = AVERAGE('Financials'[Revenue])

Replace 'Financials'[Revenue] with your own table and column name. This measure will calculate the average of whatever data is visible in the current filter context of the chart.

Scenario B: A Static Average Unaffected by Filters

This is the more common reason to use DAX for an average line. To make the line ignore certain filters, we combine the CALCULATE() and ALL() functions.

The ALL() function removes all filters from a given table or column. When you wrap it inside a CALCULATE() function, you're telling Power BI to calculate the average for all the data, not just what's selected in the current chart or slicer.

Create a new measure with this formula:

Overall Average Revenue = CALCULATE( &nbsp,&nbsp,AVERAGE('Financials'[Revenue]), &nbsp,&nbsp,ALL('Financials') )

This measure calculates the average revenue across your entire 'Financials' table, ignoring any filters for dates, products, or anything else.

Step 2: Add the DAX Measure to a Combo Chart

Once you've created your measure, you can't just drag it onto a standard column chart. That will create more columns. Instead, the best way to visualize a measure-based reference line is to use a Line and Stacked Column Chart (or Line and Clustered Column Chart).

1. Change your chart type: Select your visual and, in the Visualizations pane, choose the "Line and stacked column chart" icon.

2. Configure the axes: Your visual will now have two Y-axis fields: one for columns and one for the line.

  • Drag your main metric (e.g., 'Revenue' from your table) to the Column y-axis.
  • Drag your new DAX measure (e.g., "Overall Average Revenue") to the Line y-axis field.

You'll immediately see your monthly columns displayed alongside a perfectly flat horizontal line representing your overall average.

Step 3: Format the DAX Line

Finally, neaten it up in the Format your visual pane:

  • Go to the "Lines" section and customize the color, stroke width, and style (e.g., solid or dashed) for your average line.
  • Go to "Data labels" and turn them On for your line series so the value is visible. You'll likely want to disable the data labels for the main columns to keep the chart clean.
  • You can even rename the line in the legend to be more descriptive by clicking the ellipsis (...) next to the measure in the Line Y-axis field and selecting "Rename for this visual."

Using DAX gives you ultimate flexibility. You can calculate averages for specific time periods, exclude certain categories from the calculation, or create dynamic benchmark lines that go far beyond what the standard Analytics Pane can offer.

Practical Tips for Using Average Lines

  • Don't Overcrowd the Chart: An average line is great, but adding lines for the min, max, median, and P90 percentile all on the same small chart will make it unreadable. Keep it simple and focused on the key metric.
  • Average vs. Median: The Analytics Pane also lets you add a median line. If your data has a lot of extreme outliers (e.g., one huge sales day), the median can sometimes be a more representative benchmark than the mean average.
  • Use a Meaningful Name: Whether in the data label or title, be specific. Instead of just "Average," use "6-Month Avg Revenue." Context is everything.

Final Thoughts

Adding an average line is a fundamental skill in Power BI that elevates your reports from simple data displays to powerful analytical tools. The Analytics Pane provides an effortless way to add basic reference lines for quick analysis, while learning a few simple DAX patterns unlocks unlimited flexibility for more sophisticated, custom benchmarks.

All of these tools are about turning data into clearer, faster insights without tedious, manual work. At Graphed, we've built an entire platform around this idea. Instead of hunting through menus or writing DAX code, you just connect your data and ask questions in plain English like, "Show me last month's web traffic by country as a column chart with a line for the overall average." We instantly build the dashboard for you, connected to your live data sources, so you can spend less time configuring charts and more time acting on the insights they provide.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.