How to Show Trends in Tableau

Cody Schneider8 min read

Showing trends is one of the most fundamental tasks in data analysis, but it can quickly get complicated. You’ve got the data in Tableau, you know there’s a story in there about your growth, decline, or seasonality, but making it clear and understandable is the real challenge. This guide will walk you through several methods for showing trends in Tableau, from simple one-click trend lines that take seconds to custom trend indicators that make your dashboards instantly readable.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

The Quickest Win: Using Tableau's Trend Line Feature

The simplest way to visualize a trend is by adding a trend line directly to your chart. This is a built-in feature in Tableau's Analytics pane that does the statistical heavy lifting for you. It helps you see the general direction of your data over time - is it going up, down, or staying flat?

How to Add a Trend Line

Let's say you're looking at your monthly sales over the past two years. You've already built a simple line chart with your Order Date (set to Month) on the Columns shelf and SUM(Sales) on the Rows shelf.

Here’s how to add the trend line:

  1. Navigate to the Analytics pane on the left-hand side of your worksheet (it’s next to the Data pane).
  2. Under the "Model" section, you’ll see Trend Line.
  3. Simply drag and drop "Trend Line" from the Analytics pane onto your chart. A small box will appear asking you to choose the type of trend line. The most common are Linear, Logarithmic, Exponential, and Polynomial.

For most business scenarios, a Linear trend line is the perfect starting point. It draws a straight line that best fits your data points, making it incredibly easy to see the overall trajectory. If your sales are generally increasing, the line will point up. If they're decreasing, it'll point down.

Understanding and Customizing Your Trend Line

Once you’ve added the line, you can get more information from it. Hovering your cursor over the trend line will reveal a tooltip containing key statistical information:

  • R-Squared value: Think of this as a score for how well the trend line fits your data. It ranges from 0 to 1. A value of 0.85 means that 85% of the variation in your sales can be explained by the trend. A higher number is generally better, indicating a stronger correlation.
  • P-value: This tells you about the statistical significance of your trend. A common rule of thumb is that a p-value less than 0.05 is significant, meaning it's unlikely the trend you're seeing happened by random chance.

You can also edit the trend line by right-clicking on it and selecting Edit Trend Lines.... This opens up options to change the model type, include or exclude factors from your analysis, and even show confidence bands, which visualize the potential range of your trend.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Going Deeper: Period-Over-Period Analysis with Table Calculations

A straight trend line gives you the big picture, but what about the nuances? You often need to know how performance is changing from one period to the next. Are you growing faster this month than last month? How does this quarter's sales compare to the same quarter last year? This is where Tableau’s Quick Table Calculations come in handy.

Calculating Month-over-Month Growth

Let's use our same sales line chart. Instead of just a simple SUM of sales, let's see the percentage change each month. This immediately tells you the momentum of your business.

  1. Right-click the SUM(Sales) pill on your Rows shelf.
  2. From the context menu, select Quick Table Calculation.
  3. Choose Percent Difference.

Instantly, your chart transforms from showing raw sales numbers to showing the growth rate between each month. Positive values show growth, while negative values show a decline. This view is fantastic for spotting things like a sudden drop in growth or a quarter where your sales really took off.

Smoothing Out the Noise with a Moving Average

Sometimes, raw monthly data can be "noisy," with lots of ups and downs that hide the underlying trend. A moving average smooths this out by averaging the data over a specific period, like the last 3 or 6 months. It's an excellent way to see the long-term trend without getting distracted by short-term fluctuations.

To create one:

  1. Once again, right-click the SUM(Sales) pill on your Rows shelf.
  2. Go to Quick Table Calculation > Moving Average.
  3. By default, Tableau calculates the average of the previous two periods plus the current one. You can edit this by right-clicking the pill again and selecting Edit Table Calculation. Here, you can change the number of periods to include in the average.

A line chart showing both the raw monthly sales and a 3-month moving average on top of it (using a dual-axis chart) is a powerful combination. It gives your audience both the detailed performance and the smoothed-out, bigger-picture trend.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Creating Custom Trend Indicators with Calculated Fields

For dashboards that need to be understood at a glance, text and lines aren't always enough. This is where visual cues like colored up/down arrows or shape indicators can be incredibly effective. Imagine a table of product sales where, next to each number, an intuitive icon tells you if that product’s sales are trending up or down.

This requires a slightly more advanced approach using Calculated Fields, but it's well worth the effort.

Step 1: Calculate the Previous Period's Value

First, we need to know what the value was in the previous period (e.g., last month) so we can compare it to the current period.

Create a calculated field. Let's call it Previous Month Sales. The formula uses the LOOKUP function: LOOKUP(SUM([Sales]), -1)

The LOOKUP function does exactly what its name suggests: it looks up a value in another row of your data partition. In this case, SUM([Sales]) is the value we want, and -1 tells Tableau to look at the previous row (or in our time-series context, the previous month).

Step 2: Create the Trend Indicator Logic

Now that we have both the current sales (SUM([Sales])) and the previous month's sales (Previous Month Sales), we can compare them. Create a second calculated field named Sales Trend Indicator with the following IF/THEN logic: IF SUM([Sales]) > [Previous Month Sales] THEN "Up" ELSEIF SUM([Sales]) < [Previous Month Sales] THEN "Down" ELSE "Flat" END

This formula checks if the current sales are greater than, less than, or equal to the previous month's sales and assigns a simple text label ("Up," "Down," or "Flat") accordingly.

Step 3: Put the Indicator on Your Visualization

Now for the fun part. Let’s make a simple text table showing Category and SUM(Sales).

  1. Drag your new calculated field, Sales Trend Indicator, onto the Shapes card in the Marks shelf.
  2. Tableau will assign default shapes. Click on the Shapes card to edit them.
  3. In the "Edit Shape" dialog box, you can assign custom shapes to each value. Select the "Default" shape palette and you’ll find built-in filled up arrows, down arrows, and circles. Assign the up arrow to "Up," the down arrow to "Down," and a circle or minus sign to "Flat."
  4. Optionally, you can drag the Sales Trend Indicator to the Color card and assign colors (e.g., green for "Up," red for "Down").

Now you have a highly intuitive table that pairs hard numbers with an immediate visual signal of the trend, all without your audience needing to read a single chart.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Looking Ahead: Trend Analysis with Tableau's Forecasting Feature

Visualizing past trends is great, but what about the future? Tableau's forecasting models allow you to project future trends based on your historical data. It uses a technique called exponential smoothing, which gives more weight to recent data points when making its predictions.

How to Add a Forecast

Building a forecast is just as easy as adding a trend line.

  1. Starting with your time-series line chart, go to the Analytics pane.
  2. Drag Forecast from the "Model" section onto your view.
  3. Tableau automatically generates a forecast for the upcoming periods and displays it as an extension of your line chart.

The forecast includes not just the estimate (the line) but also a shaded area around it. This is the confidence interval. A wider band means more uncertainty in the forecast, while a narrower band suggests the model is more confident in its prediction.

You can customize the forecast by right-clicking on it and selecting Forecast > Forecast Options.... Here, you can adjust the forecast length (e.g., predict the next 6 months instead of 12) and tell Tableau about your data's seasonality (e.g., if you have a yearly sales cycle).

Final Thoughts

From a simple drag-and-drop trend line to more sophisticated custom indicators and automatic forecasting, Tableau provides a robust toolkit for analyzing and displaying trends. Choosing the right method depends on your goal, but each technique is designed to help you and your audience look beyond the raw numbers to see the story developing over time.

Learning all the clicks, calculated fields, and settings in a powerful tool like Tableau is an investment. Sometimes you just need to see a trend quickly, without getting slowed down by the process. This is where an AI-native approach comes in handy. With Graphed, we’ve designed a system where you can simply ask for what you need in plain English. Instead of building a view and adding trend lines, you can just ask, "Show me the month-over-month trend for our web traffic," and get a live, interactive chart instantly. It’s all about getting to the insight faster and without a steep learning curve.

Related Articles