How to Show Dimensions and Measures in Tableau

Cody Schneider9 min read

Working in Tableau is all about a conversation with your data, and at the heart of that conversation are two key terms: dimensions and measures. Tableau automatically organizes your data into these two categories, and understanding their distinct roles is the single most important step to building effective visualizations. This guide will walk you through exactly what dimensions and measures are, how to work with them, and how you can manipulate them to tell the right data story.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Understanding the Building Blocks: Dimensions vs. Measures

Think of dimensions and measures as the basic grammar of your data visualizations. You can’t build a coherent sentence without nouns and verbs, and you can’t build a useful chart without dimensions and measures. They work together to give your data structure and meaning.

What Are Dimensions?

Dimensions are qualitative, categorical data. They are fields that you can't perform mathematical operations on. Instead, they provide context and labels, acting as the "buckets" that group your data. When you drag a dimension into your view, you are slicing your data into distinct categories.

Essentially, dimensions answer questions that start with "what," "when," and "where."

  • Product Category: "Technology," "Office Supplies," "Furniture"
  • Geographic Location: "California," "New York," "London"
  • Order Date: "January 1, 2023," "Q3 2024"
  • Customer Name: "John Smith," "Sarah Lee"

In the Tableau interface, dimensions are typically represented as blue pills and are treated as discrete values.

What Are Measures?

Measures are quantitative, numerical data. These are the fields you can perform mathematical calculations on, such as summing them up, finding the average, or counting them. They are the actual values you want to analyze within the categories your dimensions create.

Measures answer the questions "how many?" or "how much?"

  • Sales: $1,500, $23,450
  • Profit: $250, -$50
  • Quantity: 1, 10, 500
  • Website Sessions: 10,234

In Tableau, measures are usually represented as green pills and are treated as continuous values, forming axes on your charts.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

A Simple Analogy

Imagine you're organizing a library. The dimensions are the shelves and the sections: "Fiction," "Non-Fiction," "Science." They segment the library into logical groups. The measures are the number of books on each shelf. You can count the books (the measure) within each category (the dimension) to understand which section is largest.

How Tableau Automatically Classifies Your Data

When you first connect a data source, Tableau scans each column and makes an educated guess about whether it's a dimension or a measure. The process is pretty straightforward:

  • Text (strings) and date fields are automatically classified as dimensions.
  • Numerical fields (like integers and floating-point numbers) are automatically classified as measures.

You can see this immediately in the Data pane on the left side of your worksheet. Tableau groups your fields, placing all of the dimensions above a thin gray line and all of the measures below it. This simple organizational feature gives you a quick overview of your data's structure before you even start building anything.

Putting it into Practice: Visualizing with Dimensions and Measures

The best way to understand the dynamic between these two field types is to see them in action. Let's build a couple of common charts to illustrate the process.

Example 1: Creating a Simple Bar Chart (Sales by Category)

A bar chart is perfect for comparing a measure across different categories (dimensions). Let’s say we want to see our total sales for each product category.

  1. Find your dimension in the Data pane. In this case, it might be named Category.
  2. Click and drag Category onto the Columns shelf at the top of the workspace. You will instantly see column headers appear for each unique product category (e.g., "Technology," "Office Supplies"). You've just used a dimension to slice your view.
  3. Next, find your measure - in this case, Sales.
  4. Click and drag Sales onto the Rows shelf. Tableau will automatically create a vertical axis for the sum of sales and draw a bar for each category. The length of each bar represents the total sales for that specific category.

What just happened? The Category dimension created the "buckets," and the Sales measure was aggregated (in this case, SUM(Sales)) and used to fill those buckets.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Example 2: Analyzing Trends with a Line Chart (Profit Over Time)

Line charts are ideal for tracking a measure over a time period. Let's see how our profit has changed over time.

  1. Find your date dimension, likely called Order Date.
  2. Drag Order Date onto the Columns shelf. By default, Tableau will often aggregate this to the year level, so you'll see a YEAR(Order Date) pill.
  3. Find your measure, which here is Profit.
  4. Drag Profit onto the Rows shelf. Tableau creates a vertical axis for SUM(Profit) and plots points for each year, connecting them with a line.

To see more detail, you can change the granularity of your date dimension. Click the small + icon on the YEAR(Order Date) pill in the Columns shelf. This will drill down to "Quarter." Click it again, and you'll drill down to "Month." Each click changes the level of detail, using the date dimension to slice the profit measure into smaller time segments.

Flexibility is Key: Converting Fields

Tableau’s automatic classification is smart, but it’s not perfect. Sometimes, a field that contains numbers should be treated as a dimension, or vice-versa. Luckily, Tableau makes this incredibly easy to change.

When to Convert a Measure to a Dimension

The most common scenario for this is with ID numbers. A field like Order ID or Employee ID contains numbers, so Tableau will classify it as a measure. But does it make sense to calculate the SUM of Order IDs? Of course not. You'll want to use it as a label or to count distinct orders.

How to convert a measure to a dimension:

  • Find the field in the Measures section of the Data pane.
  • Right-click on it and select "Convert to Dimension."
  • Alternatively, you can simply click and drag the field from the Measures section up to the Dimensions section.

The pill will switch from green to blue, indicating it's now a discrete, qualitative field.

When to Convert a Dimension to a Measure

This is less common but still necessary at times. Imagine you import survey results where ratings from 1 to 5 are stored as text strings ("1", "2", "3", etc.). Tableau will see the text and make it a dimension. But what if you want to calculate the average rating? You can’t average a dimension.

How to convert a dimension to a measure:

  1. First, you need to change the data type. Right-click the field and select Change Data Type → Number (whole) or Number (decimal).
  2. Now that the field is numeric, right-click on it again and select "Convert to Measure."

The field will move to the Measures section and its pill will turn green, ready for aggregation.

Decoding the Colors: Blue Pills vs. Green Pills

While we've mentioned them already, it's worth taking a closer look at the blue and green pills. They signify more than just dimension vs. measure, they represent discrete vs. continuous data, a concept central to Tableau.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Blue Pills = Discrete

Discrete values are individually separate and distinct. They create headers and labels in your visualization.

  • Dragging a discrete (blue) pill to the Rows shelf creates a row for each value in that field.
  • Dimensions are almost always discrete by default. For example, the Category dimension contains three discrete values: "Furniture," "Office Supplies," and "Technology."

Green Pills = Continuous

Continuous values form an unbroken range. They create axes in your visualization.

  • Dragging a continuous (green) pill to the Rows shelf creates a single axis that spans the range of that field's values.
  • Measures are almost always continuous by default. For example, Sales could be any value along a spectrum.

You can toggle a field between discrete and continuous by right-clicking the pill on a shelf. A great example is a date dimension. When it's discrete (blue), you get labels like "January," "February." When it's continuous (green), you get a unified time axis that flows from one month into the next.

Tips for Mastering Dimensions and Measures

Once you've grasped the basics, you can start using dimensions and measures in more sophisticated ways.

  • Count a Dimension: Need to know how many unique customers you have? Drag the Customer Name dimension onto your view. Then, right-click the pill and under the "Measure" sub-menu, select Count (Distinct). This converts the dimension into a distinct count measure on the fly.
  • Change Aggregation: Tableau defaults to SUM for most measures, but it's not the only option. Right-click any measure pill in your view to change the aggregation to Average, Median, Minimum, Maximum, or Count.
  • Use Measures for Filtering: Want to see only products with sales over $50,000? Just drag the Sales measure to the Filters card. A dialog box will appear, letting you set a minimum and maximum for the range you want to include in the view.

Final Thoughts

Mastering Tableau starts with understanding the relationship between dimensions and measures. Dimensions provide the context and structure for your analysis by slicing your data into groups, while measures provide the quantifiable numbers you analyze within those groups. Getting comfortable with this core concept transforms Tableau from an intimidating tool into an intuitive canvas for data exploration.

While concepts like dimensions and measures are foundational, sometimes you just need a quick answer without rebuilding charts from scratch. Instead of dragging and dropping fields, building visuals, and modifying aggregations, we built Graphed to streamline this entire process. We connect directly to your data sources, allowing you to ask questions in plain English, like "what were my sales by category last quarter?" and get a perfect chart instantly. It handles the 'dimensions vs. measures' logic for you, so you can move straight from question to insight in seconds.

Related Articles