How to Add Trendline in Power BI Bar Chart

Cody Schneider8 min read

Adding a trendline to a bar chart in Power BI can visually highlight patterns you might otherwise miss. While it's not a built-in, one-click feature for a standard bar chart, there's a straightforward and effective method using a different visual. This tutorial will walk you through exactly how to create a bar chart with a trendline and customize it to reveal the insights hidden in your data.

Why Is a Trendline on a Bar Chart Useful?

Trendlines are powerful because they cut through the noise of individual data points to show the bigger picture. You might have monthly sales data with lots of peaks and valleys, which can make it hard to spot the overall direction of your business. Is revenue generally increasing, decreasing, or staying flat?

A trendline smooths out these short-term fluctuations and draws a clear line showing long-term momentum. When you overlay this on a bar chart representing monthly or quarterly figures, you get two layers of insight in a single visual:

  • The Bars: Show performance during specific periods (e.g., sales were great in May but dipped in June).
  • The Trendline: Shows the overall direction over the entire period, ignoring the short-term ups and downs (e.g., despite the dip in June, overall sales have been growing steadily all year).

This combination helps you put individual periods into a broader context, making your analysis more accurate and informed.

The Power BI Solution: Using a Combo Chart

Here's the main thing to know: Power BI doesn't allow you to add a trendline directly to its standard Clustered bar chart or Stacked bar chart visuals. The option for it in the Analytics pane will be greyed out. So, how do we get around this? The solution is to use a combo chart instead.

Power BI offers two wonderful visuals perfectly suited for this task:

  • Line and stacked column chart: Great for showing the total value and its parts.
  • Line and clustered column chart: Better for comparing values across different categories.

By using one of these charts, we can represent our data as columns (effectively our "bar chart") and then add a trendline to analyze that data. Let's get into the step-by-step process.

Step-by-Step Guide: How to Add a Trendline

For this example, let's assume we have a simple dataset with sales figures for each month. Our goal is to create a column chart showing monthly sales and overlay a trendline to see the overall growth pattern for the year.

1. Prepare Your Data

Before you even open Power BI, make sure your data is structured properly. For a trendline to work, you need a continuous field to plot along the X-axis. This is almost always a date field (day, month, quarter, or year).

If your dates are recognized as text, the trendline feature won't work. Check the data type for your date column in Power BI's 'Data' view and ensure it is set to a Date, Date/Time, or similar format.

2. Select the Right Chart Visual

Once your report is open in Power BI Desktop, navigate to the Visualizations pane on the right-hand side.

Deselect any active visual on your canvas, and then select the Line and stacked column chart or the Line and clustered column chart. A blank placeholder for the visual will appear on your report canvas.

3. Configure the Chart Fields

Now it's time to tell Power BI what data to show. With your new chart selected, look at the Fields section of the Visualizations pane. You'll see several wells like Shared axis, Column values, and Line values.

Here's the clever trick:

  • Shared axis: Drag your date field here (e.g., OrderDate). Power BI will likely create a date hierarchy for you (Year, Quarter, Month, Day). You can keep this or use the drop-down to select just the field you need.
  • Column values: Drag your numerical measure here (e.g., Sales). This will create the columns for your chart.
  • Line values: Here's the key step. Drag the exact same numerical measure (e.g., Sales) into this well.

At this point, you'll have a column chart with a line chart overlaid on top of it, both showing the exact same data. Don't worry, we're about to replace that data-driven line with our analytics-driven trendline. Having a measure in "Line values" is just a necessary step to activate the Analytics pane options we need.

4. Go to the Analytics Pane

With your combo chart still selected, look back at the Visualizations pane. Next to the "Format your visual" icon (the paintbrush), you'll see a small icon that looks like a magnifying glass. This is the Analytics pane.

Click on it to open up a new set of options for adding analytical lines to your visual, such as constant lines, min/max lines, average lines, and - most importantly - the trendline.

5. Add the Trendline

In the Analytics pane, you'll see a section named Trend line. It might be collapsed, so click the arrow to expand it. Then, click the + Add button.

Instantly, a dotted line will appear across your column chart. This is your trendline! It's automatically calculated based on the data you provided in the "Column values." Power BI uses a standard linear regression model to figure out the best fit.

You'll notice that the original data line we created is still there. More often than not, it creates unnecessary visual clutter. To get rid of it, go back to the Format your visual pane, find the Lines section, and change the formatting of the original sales line: set the Stroke Width to 0 or change its color to be fully transparent.

Customizing Your Trendline for Clarity

A default trendline is great, but a customized one is even better. It can improve readability and ensure your final report looks polished and professional. Within the Trend line section of the Analytics pane, you'll find a few easy customization options:

  • Style: The default is ‘Dotted’, but you can change it to ‘Solid’ or ‘Dashed’, depending on what you feel stands out best without overwhelming the bars.
  • Color: Don't stick with the default dark grey if it doesn't fit your company's brand guide or clashes with your chart's colors. Choose a color that has a strong contrast, like red for a chart with blue bars, to make the trend instantly visible.
  • Transparency: You can increase the transparency if you feel the line is too dominant. A transparency of around 30% often works well.

Feel free to experiment with these settings until the trendline clearly communicates the insight without adding clutter to the visual.

Common Problem: "Why is 'Trend line' Greyed Out?"

This is by far the most common problem users encounter, and it almost always comes down to one of two issues:

  1. You're Using the Wrong Chart Type: As mentioned, trendlines cannot be added to standard bar or column charts. You must use a Line and column chart, Scatter plot, or Line chart. If it's greyed out, double-check the visual you've selected.
  2. Your X-axis is Not Continuous: Trendlines need a continuous axis to plot against. A date hierarchy is continuous, but if you've dragged a text field (like the names of salespeople or product categories) to the X-axis, Power BI can't calculate a chronological trend. Make sure your X-axis field is a recognized date or number.

To fix the axis, check its data type in the 'Data' view. If it's a numeric field being treated as text, you can change the type there. If your axis is naturally categorical (like regions: North, South, East, West), a trendline might not be the right analytical tool. In that case, an Average line (also available in the Analytics pane) often provides more relevant insights.

Interpreting Your New Trendline

Creating the line is only half the battle. The real value comes from understanding what it means.

  • An Upward Sloping Trendline: This is good news! It shows positive growth over time. Even if some months are down, the overall trajectory is up.
  • A Downward Sloping Trendline: This might be a cause for concern. It indicates that, on average, performance is declining, even if you had a few strong months.
  • A Flat Trendline: This shows stability or stagnation. Performance isn't growing or declining significantly over the period you're analyzing.

By communicating your findings along these lines, you move from simply presenting data to delivering actionable business insights that can drive meaningful strategy changes.

Final Thoughts

Creating a bar chart with a trendline in Power BI is about knowing the right workaround - using a combo chart to unlock the features of the Analytics pane. Once configured, it becomes a powerful storytelling tool, providing a quick, visual summary of performance over time that is easy for anyone to understand.

While mastering specific features in tools like Power BI is a valuable skill, sometimes you just need insights fast, without hunting through menus. We created Graphed because we believe anyone on your team should be able to get answers from their data instantly. Instead of a multi-step process, you can simply ask things like, "Show me website traffic by country as a line chart with a trendline." We take care of connecting all your data sources and building live, interactive dashboards, so you can focus on making data-driven decisions, not building reports manually.

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.