How to Create a Bar Chart in Tableau

Cody Schneider7 min read

The bar chart is the undisputed workhorse of data visualization, and learning to build one is the first essential step in your Tableau journey. It's the perfect tool for comparing values across different categories, like sales figures by region or website traffic by marketing channel. This guide will walk you through creating, customizing, and leveling up your bar charts in Tableau, step by step.

Understanding the Basics: Dimensions and Measures

Before you drag and drop anything in Tableau, you need to understand the two fundamental types of data fields: Dimensions and Measures. Getting a handle on this concept is the key to unlocking Tableau's power.

Think of it like this:

  • Measures are the numbers and values you want to analyze. They are the "what." This includes data like Sales, Profit, Temperature, or Number of Clicks. You can perform mathematical operations on measures (like summing, averaging, or finding the maximum). In your Tableau Data pane, measures are typically colored green.
  • Dimensions are the categories you use to slice and dice your measures. They are the "by what." This includes data like Product Category, State, Customer Name, or Date. They provide context to your numbers. In the Data pane, dimensions are typically colored blue.

For example, if you want to see "Sales by Product Category," your measure is Sales, and your dimension is Product Category. The dimension breaks the total sales number down into different categorical buckets.

Creating a Simple Bar Chart: Step-by-Step

Let's build our first bar chart to visualize sales for each product category. We'll use the Sample - Superstore dataset that comes packaged with Tableau, but you can follow along with your own data.

Follow these simple steps:

1. Connect to Your Data: First, open Tableau and connect to your data source. In this case, we’ll select the "Sample - Superstore" data.

2. Add Your Dimension to Columns: In the Data pane on the left, find your dimension. We'll use Category. Click and drag the Category pill over to the Columns shelf at the top of the canvas. You'll see column headers appear for "Furniture," "Office Supplies," and "Technology."

3. Add Your Measure to Rows: Now, find your measure. We'll use Sales. Click and drag the Sales pill over to the Rows shelf. Instantly, Tableau generates a vertical bar chart. The height of each bar represents the total sum of sales for that specific category. The taller the bar, the higher the sales.

That's it! You have successfully created a simple bar chart. Tableau automatically defaults to a bar chart in this scenario because you've combined one dimension and one measure, which is the perfect recipe for this chart type.

Quick Tip: Using the "Show Me" Panel

Alternatively, you can use Tableau's "Show Me" panel. Hold down Ctrl (or Command on Mac) and click on both Category and Sales in the Data pane. Then, in the "Show Me" panel on the top right, select the bar chart icon. Tableau will construct the chart for you, placing the pills on the correct shelves automatically. While helpful for beginners, learning to build charts by dragging and dropping pills gives you much more control.

Customizing Your Bar Chart for Clarity and Impact

A basic chart is good, but a well-formatted chart tells a much clearer story. The Marks card to the left of your visualization canvas is where most of the magic happens. Let's explore a few key customizations.

Adding Color to Tell a Deeper Story

Color is a powerful tool for adding another layer of information. You can use it to break down your data further or to highlight performance.

  • Use a Dimension for Color: Want to see which product Segments drive sales within each Category? Drag the Segment dimension directly onto the Color tile in the Marks card. Your bars will now be split into colored sections representing Consumer, Corporate, and Home Office sales.
  • Use a Measure for Color: Trying to spot high-profitability categories at a glance? Drag the Profit measure onto the Color tile. The bars will be colored with a gradient - often progressing from orange to blue. Higher-profit bars will have a deeper blue color, immediately drawing the eye to top performers.

Adding Data Labels

Sometimes, your audience needs to see the exact numbers without hovering over each bar. To add labels, simply drag the measure you want to display (Sales in our case) onto the Label tile on the Marks card. The sales figures will now appear directly on your chart's bars.

Sorting Your Data to Find Insights

By default, your chart is probably sorted alphabetically by the dimension's name. But for analysis, it's far more useful to sort by value. There are a few easy ways to do this:

  • Quick Sort: Hover your mouse over the "Sales" axis title. A small sorting icon will appear. Clicking it will let you sort in ascending or descending order. This is the fastest way to see your top or bottom performers.
  • Advanced Sort: For more control, right-click the Category pill on the Columns shelf and select Sort. A dialog box will open, allowing you to sort by a specific field (like Profit instead of Sales), in a manual order, or based on other criteria.

Editing Tooltips and Titles

The tooltip is the little box of information that appears when you hover over a mark on your chart. You can customize it by clicking on the Tooltip tile on the Marks card. A text editor will open, allowing you to rewrite the hover-over text, add more fields, and format the text to be more descriptive and user-friendly.

You can also double-click the chart title ("Sheet 1" by default) to edit it. Give it a clear, descriptive title like "Total Sales by Product Category" to give your audience immediate context.

Level Up: Building Variations of the Bar Chart

Once you've mastered the simple bar chart, you can easily create more sophisticated variations to answer more complex questions.

How to Create a Stacked Bar Chart

A stacked bar chart is perfect for showing part-to-whole relationships across categories. Let’s say we want to see not just total sales by category, but how those sales are broken down by Region.

Start with your simple bar chart (Sales by Category). Now, simply drag the Region dimension from the Data pane and drop it directly onto the Color tile on the Marks card. Voila! Tableau automatically stacks the bars, showing you the proportion of sales from each region within each category under a single bar.

How to Create a Side-by-Side Bar Chart

Side-by-side bar charts are excellent for direct comparisons. What if you want to compare the Sales and Profit for each Category, right next to each other?

Here’s the trickiest but most powerful method:

  1. Start fresh on a new sheet. Drag the Measure Values pill onto the Rows shelf. Tableau might automatically populate this section with all your measures.
  2. Drag the Measure Names pill to the Columns shelf.
  3. Now filter the noise. Find the Measure Names card which appeared to the left, on the Filters Pane. Right-click on it and select Filter to pick just Sales and Profit.
  4. Finally, add that detail again. Drag the Category dimension into the Columns shelf too. Now you have side-by-side comparative graphs to evaluate how Sales compare to Profit generated within each Category. Pretty useful, right?

Final Thoughts

The bar chart is your reliable go-to for a huge range of data questions, and with Tableau, you're just a few drag-and-drops away from compelling insights. By understanding how dimensions and measures work together and how to use the Marks card for customization, you can build powerful visualizations that clearly communicate your data's story.

While mastering tools like Tableau is an incredibly valuable skill, we know that sometimes you need business insights without a steep learning curve. At Graphed, we use AI to help you get answers instantly. You can connect your data sources like Google Analytics, Shopify, and Salesforce, then simply ask questions in plain English, like, "Create a bar chart showing me revenue by campaign for the last 30 days," and we'll instantly build the reports and dashboards for you - no dragging and dropping required.

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.