What is a Discrete Field in Tableau?

Cody Schneider••8 min read

When you first start using Tableau, you'll immediately notice that fields turn either blue or green when you drag them into your view. This isn't just a design choice - it's Tableau's way of telling you something fundamental about your data. This article will break down exactly what a discrete field is (the "blue pill"), how it differs from a continuous field, and why understanding this simple color distinction is the key to building the visualizations you want.

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

Discrete vs. Continuous: What's the Difference?

In Tableau, all your data fields are classified as either discrete or continuous. Getting a handle on this concept is the most important first step to mastering the tool.

What is a Discrete Field?

Think of discrete fields as categories. They represent data that is individual, distinct, and separate. You can count the items in a discrete field, but you can't measure the space between them because there isn't any.

Common examples of discrete fields include:

  • Region: (e.g., North, South, East, West)
  • Product Category: (e.g., Furniture, Office Supplies, Technology)
  • Customer Name: (e.g., Anna, Brian, Carlos)
  • Order ID: (e.g., CA-2022-152156)

When you drag a discrete field onto a shelf in Tableau, it turns into a blue pill. These blue pills create labels or headers for your data. If you put 'Region' on your Columns shelf, you don't get a scale from "North-ish" to "West-ish" - you get four distinct headers: North, South, East, and West.

What is a Continuous Field?

Continuous fields, on the other hand, represent data that can be measured on a scale. They have an order, and the space between values is meaningful. The values could theoretically be broken down into infinitely smaller units.

Common examples of continuous fields are:

  • Sales: (e.g., $150.55, $2,304.99)
  • Profit: (e.g., $35.12, -$104.20)
  • Temperature: (e.g., 68.5 degrees)
  • Age: (e.g., 34.5 years)

When you drag a continuous field onto a shelf, it becomes a green pill. These green pills create axes in your visualization. If you put 'Sales' on your Rows shelf, Tableau creates a vertical axis that scales from your lowest sales value to your highest, representing the full possible range.

A Quick Cheat-Sheet

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.

How Tableau Shows You a Field is Discrete

Tableau provides clear visual cues to let you know how it's interpreting each field in your data source.

1. Blue Pills: The most obvious indicator. If a field on your Rows, Columns, or Marks card is blue, it’s being treated as discrete. It will create separate panes or headers for each value in that field.

2. Icons in the Data Pane: Before you even drag a field into your view, you can check its default type in the Data pane on the left.

  • 🔤 Text (Abc): String values like names or categories are always discrete.
  • 🗓️ Date (Calendar Icon): Date fields are discrete by default (e.g., YEAR(2023)). This helps in creating headers for each year.
  • #️⃣ Numeric (# Icon): Numeric fields like Sales default to continuous, but identifiers like Order ID should be discrete. A blue '#' icon indicates a discrete number.

3. Headers, not Axes: When you drag a discrete field to Rows or Columns, Tableau creates distinct headers for each member of that field. Putting Category on your columns gives you three headers - Furniture, Office Supplies, Technology - and divides the view into three corresponding columns.

Common Uses for Discrete Fields in Visualizations

Discrete fields are the building blocks you'll use to structure almost every chart and graph you make in Tableau. Here are a few practical examples.

Building a Simple Bar Chart with Categories

The most common use of discrete fields is to slice your data into categories. A bar chart is the perfect example.

How to build it:

  1. Drag a discrete dimension, like Sub-Category, to the Columns shelf. This creates a separate column for each sub-category in your data, represented by a blue pill with headers.
  2. Drag a continuous measure, like SUM(Sales), to the Rows shelf. This creates a vertical axis to measure the sales, represented by a green pill.

Tableau instantly generates a bar chart. Each bar represents a discrete sub-category, and its height is determined by the continuous value of sales. Without the discrete field, you'd just have one big bar representing total sales.

Using Discrete Fields as Filters

Filters allow you to include or exclude specific data points from your view. When you use a discrete field as a filter, Tableau presents you with a list of its distinct members, allowing you to check the ones you want to see.

For example, if you drag Region to the Filters card, a dialog box will appear with checkboxes for 'Central', 'East', 'South', and 'West'. You have complete control to show or hide the exact regions you need. A continuous filter, by contrast, would give you a slider to select a range of values (e.g., filter Sales between $10,000 and $50,000).

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

Breaking Down Visuals with Color and Detail

Discrete fields create categories, and a great way to visualize these categories is with color.

Imagine you have a single bar showing total company sales. To understand the performance of different product categories within that total, drag the Category dimension to the Color tile on the Marks Card.

Instantly, your single bar is broken down into three colored segments: one for Furniture, one for Office Supplies, and one for Technology. The discrete field has sliced your measure into distinct buckets, and Tableau has assigned a different color to each bucket.

A Special Case: Discrete Date Parts

Working with dates is where the discrete vs. continuous distinction often trips people up. Tableau can treat dates in two ways: as discrete date parts or continuous date values.

A discrete date part (blue pill) focuses on a specific unit of time, ignoring the larger context. For example, if you place MONTH(Order Date) as a discrete field on your visualization, Tableau will aggregate all data for January, regardless of the year. Sales from January 2021, January 2022, and January 2023 will all be grouped together into a single "January" header. This is perfect for analyzing seasonality - are widget sales always highest in November?

A continuous date value (green pill) treats each date as a unique point on a timeline. A continuous MONTH(Order Date) would create an axis that flows from Jan '21, to Feb '21, to Mar '21, and so on. This is what you need for spotting trends over time.

You can easily switch between them by right-clicking the date pill in your view and selecting the desired format from the context menu.

Tips and Common Mistakes to Avoid

Understanding discrete fields helps you avoid some common frustrations when you're just starting out.

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.

1. Double Check Numeric Fields that Are Identifiers

Sometimes, what looks like a number is actually a category. Fields like Zip Code, Customer ID, or Order ID are numerical, but you would never want to find the "average Zip Code" or the "sum of all Order IDs." Tableau might import these as continuous measures by default. To fix this, simply right-click the field in the Data pane, and select "Convert to Discrete." This ensures Tableau treats them as distinct labels.

2. Choose the Right Date Type for Your Question

Always ask yourself what question you're trying to answer with dates.

  • Question: "What are our average sales in Q1 versus Q4 over the past decade?" (Comparing sections of the calendar) → Use discrete date parts (blue QUARTER(Date)).
  • Question: "Are our sales growing quarter-over-quarter?" (Looking for a trend on a timeline) → Use continuous date values (green QUARTER(Date)).

3. Discrete Fields Determine the Level of Detail

The number of distinct labels created by your discrete fields dictates the "level of detail" in your view. If you have Region and Category on your shelves, your calculation for SUM(Sales) will be aggregated at the intersection of each region and each category (e.g., Sales for Furniture in the East region). The more discrete fields you add, the more granular your visualization becomes.

Final Thoughts

Mastering a powerful tool like Tableau is all about understanding its core concepts, and discrete fields are as core as it gets. Recognizing them as your categorical "blue buckets" helps you structure your visualizations, drill down into details, and build charts that clearly answer your business questions. Once this idea clicks, you can move from just dragging and dropping to intentionally designing powerful reports.

While learning these distinctions is incredibly valuable, we know that sometimes you're under pressure and just need answers from your data now. We built Graphed for exactly that situation. It connects directly to your data sources and allows you to build real-time dashboards using simple, natural language - no need to worry about blue pills vs. green pills or how best to configure a chart. Just ask for what you need to see, and the insights are delivered in seconds.

Related Articles