How to Create a Graph in Tableau

Cody Schneider8 min read

Jumping into Tableau for the first time can feel like staring at the dashboard of a spaceship, but creating your first graph is much easier than it looks. This is your friendly, step-by-step guide to connecting your data, understanding the workspace, and building your first beautiful and insightful visualization from scratch. By the end, you'll be able to confidently turn raw data into a clear and effective graph.

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

First Things First: Connecting to Your Data

You can't build a visualization without data. Tableau is compatible with a massive range of data sources, from simple spreadsheets to complex cloud databases. For this walkthrough, we'll connect to the most common starting point: a local spreadsheet file like an Excel or CSV.

When you open the Tableau Desktop application, you'll see a blue “Connect” pane on the left side of the screen. This is your gateway to your data.

  • Under the “To a File” heading, select “Microsoft Excel.” If you have a different file type like a CSV, you'd select "Text file."
  • A file browser window will pop up. Navigate to and select the spreadsheet you want to analyze, then click “Open.”
  • Tableau will now take you to the Data Source screen. Here, you'll see all the individual sheets (or tabs) from your workbook listed on the left. In the main canvas area, you'll see a prompt that says, “Drag tables here.”
  • Simply drag the sheet containing your data (for example, a sheet named “Orders”) onto that canvas. Tableau immediately shows you a preview of your data in a clean, tabular format.

That’s it! Your data is now connected, and you’re ready to move to the worksheet where the visualization magic happens. Click on the orange “Sheet 1” tab at the bottom of the screen to go to the main workspace.

Understanding the Tableau Workspace

Once you’re in a new sheet, you'll see several key areas. Let’s quickly break down the most important ones for building a graph. Think of this as your digital canvas and palette.

On the far left, you have the Data pane. Tableau has automatically read your data and sorted your columns into two categories:

  • Dimensions (Blue): These are your qualitative, categorical data points. They are things you can describe but not typically count in a mathematical sense. Examples include things like Names, Dates, Geographical Regions, or Product Categories. In Tableau, these are represented by blue "pills."
  • Measures (Green): These are your quantitative, numerical data points. These are the fields you can sum up, average, or perform other mathematical operations on. Examples include metrics like Sales, Profit, Quantity, or Page Views. In Tableau, these are represented by green "pills."

At the top of the workspace are the Columns and Rows Shelves. This is where you will build your graph. It works just like a simple chart in math class:

  • Whatever you place on the Columns shelf will form the columns (the x-axis) of your chart.
  • Whatever you place on the Rows shelf will form the rows (the y-axis) of your chart.

You’ll also see the Marks Card to the left of your blank canvas. This is where you control the visual details of your graph, such as the color, size, text labels, and tooltip information. We’ll use this to fine-tune our graph after we have the basics down.

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.

Building Your First Graph: A Simple Bar Chart

A bar chart is the perfect starting point. It’s excellent for comparing different categories. Let’s say we want to see our total sales for each product category. Here's how to create that view in just a few clicks.

Step 1: Get the Categories on the Chart

Find your categorical field in the Dimensions area of the Data pane. For our example, this would be a field named something like “Category” or “Product Category.”

Click and drag the Category dimension pill from the Data pane and drop it onto the Columns shelf at the top of the view. You will now see your categories appear as column headers across the bottom of your workspace: “Furniture,” “Office Supplies,” and “Technology.”

Step 2: Add Your Numerical Data

Now we need some data to chart against those categories. Find your numerical field in the Measures area. In our case, this will be the “Sales” measure.

Click and drag the Sales measure pill and drop it onto the Rows shelf. And just like that… you have a bar chart! Tableau automatically calculates the sum of sales for each category and draws a vertical bar representing that total. That’s the core power of Tableau: you don’t tell it how to draw a chart, you tell it what data to use, and it visualizes it for you.

LEVELING UP: Customizing Your Bar Chart

Your chart is functional, but let's make it more insightful and easier to read. This is where the Marks Card comes into play.

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

Adding Context with Color

What if you want to see how each different region performed within each category? This is as simple as adding another dimension.

  • Find a dimension like "Region" in your Data pane.
  • Drag the Region pill and drop it directly onto the Color icon in the Marks Card.

Your bars will now transform into stacked bars, with each segment colored according to its region. A color legend automatically appears on the right, so you can easily see which color represents each region.

Making Exact Figures Readable with Labels

Hovering over a bar provides the exact sales number in the tooltip, but sometimes you want those numbers to be visible right on the chart. That's another quick drag-and-drop.

  • Find the "Sales" measure in the Data pane.
  • Drag the Sales pill again, but this time, drop it onto the Label icon in the Marks Card.

The total sales values now appear at the top of each bar, providing at-a-glance clarity.

Sorting for Easier Comparison

By default, your chart is probably sorted alphabetically. It’s often more helpful to sort by value to quickly see your top and bottom performers.

  • Simply hover your mouse near the top corner of the y-axis (the "Sales" axis). A small sort icon will appear. Clicking this icon allows you to cycle through sorting in descending or ascending order. One click, and you can instantly identify your highest-grossing category.

Don’t Forget a Good Title

Your graph is titled "Sheet 1," which isn’t very descriptive. Double-click the title to open the Edit Title dialog box. You can change it to something clear, like “Sales by Category and Region.”

Creating a Different Graph Type: A Line Chart

Once you understand the logic of dimensions and measures, creating different charts is easy. Line charts are fantastic for showing trends over time. Let’s see how our profit has changed over the last few years.

Step 1: Set Your Timeline

To show a trend, your x-axis needs to be a Date. Find your date field in the Dimensions pane (it might be called “Order Date”).

Drag the Order Date pill to the Columns shelf. Tableau is smart and recognizes this is a date. It automatically defaults to showing you the ‘YEAR’ of the Order Date.

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.

Step 2: Add Your Data

Next, find the metric you want to track over time, such as “Profit.”

Drag the Profit pill to the Rows shelf. Tableau will instantly connect the yearly profit totals with a line, and you’ll have a clean, easy-to-read line chart showing your profit trends year over year.

Bonus Tip: Want to see more detail? You can easily "drill down." On the Columns shelf, you'll see a small "+" sign on your ‘YEAR (Order Date)’ pill. Click it, and Tableau will break the view down from year to quarter. Click it again to see data by month. This lets you effortlessly analyze your data at different levels of granularity.

Tips for Better Graphs

Now that you know how to build a graph, here are a few simple best practices to make your visualizations even better.

  • Keep it Clean: The goal is clarity, not complexity. Don't try to cram too many dimensions and measures into a single graph. It’s always better to make three simple, clear graphs than one confusing, overloaded one.
  • Always Ask "So What?": Every chart should answer a specific question. Before you build, think about what you are trying to understand. This will guide you toward the right chart type and dimensions to use.
  • Use Color with Purpose: Color can be a powerful tool for highlighting key information, but avoid using it just for decoration. Use it to distinguish between categories, show a range from low to high (with a sequential palette), or call attention to something important (with a single bright color).

Final Thoughts

Congratulations, you’ve learned the fundamentals of graph creation in Tableau! From connecting to data to building and customizing both bar and line charts, you now understand the core drag-and-drop process. The key is to simply think about what categorical fields (dimensions) you want to compare and what numerical fields (measures) you want to visualize.

Learning tools like Tableau is an incredibly valuable skill, but we know it comes with a steep learning curve. Jumping between panes, understanding how different pills interact, and formatting the results all take time. We built Graphed to remove this technical barrier. It lets you create real-time reports and dashboards by simply connecting your marketing and sales data sources (like Google Analytics, HubSpot, and Shopify) and asking questions in plain English. This way, your whole team can get the insights they need in seconds, without having to become a data analyst first.

Related Articles