How Do You Find the Field Is Discrete in Tableau?

Cody Schneider9 min read

When you drag a field onto a view in Tableau, it shows up as a "pill" that’s colored either blue or green. That color tells you if the field is being treated as discrete or continuous, a fundamental concept that dictates how your visualizations are structured. This article will break down exactly what you find when a field is discrete and how these powerful blue pills are the backbone of your data analysis.

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: The Blue Pill and the Green Pill

Before diving into the specifics of discrete fields, it’s helpful to understand their direct counterpart: continuous fields. Think of it as the Matrix: you have the blue pill (discrete) and the green pill (continuous), and each one shows you a different reality of your data.

What are Discrete Fields? (Blue Pills)

Discrete fields represent individually separate and distinct values. They are finite and can be counted. When you drag a discrete field onto the Rows or Columns shelf in Tableau, it creates headers or labels. You can think of them as nouns or categories that slice your data into distinct chunks.

  • What they are: Individually separate values (e.g., categories, names, distinct dates).
  • How Tableau treats them: Creates labels and headers. Adds panes to the view.
  • Examples: Product Category ('Furniture', 'Office Supplies', 'Technology'), Region ('East', 'West', 'Central', 'South'), or customer names. Each one is a unique bucket.

An easy way to remember this is that Discrete means Distinct.

What are Continuous Fields? (Green Pills)

Continuous fields represent values that form an unbroken whole, without interruption. Think of a measuring tape - the values can be infinitely broken down. When you use a continuous field in Tableau, it draws an axis.

  • What they are: Values that exist on a spectrum or range.
  • How Tableau treats them: Creates a continuous axis in the view.
  • Examples: Sales (from $0 to any amount), Profit, Temperature, or a chronological range of dates.

Tableau defaults to treating text fields and some date fields as discrete (dimensions), and number fields as continuous (measures), but you have the power to change them based on your needs.

The Role of Discrete Fields: Your Visualization's Skeleton

So, what actually happens when you use a discrete field? In short, they form the structure - the very skeleton - of your visualization. They create the containers that your continuous, measured data will fill.

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.

They Create Headers and Labels

The most straightforward outcome of using a discrete field is the creation of labels. Let's walk through a classic example using Tableau's Sample - Superstore dataset.

Imagine you want to see your total sales. You drag the Sales measure (a green pill) onto the Columns shelf. Tableau gives you a single bar on a horizontal axis representing the grand total of all sales.

Now, let's add structure. You drag the Category dimension (a blue, discrete pill) onto the Rows shelf. Instantly, your view changes. Instead of one bar, you now have three distinct rows, each with a clear label: "Furniture," "Office Supplies," and "Technology." Each row gets its own bar, representing the total sales for that specific category. The discrete field sliced your total sales into three neat pieces and gave each one a name.

If you add another discrete field, like Region, to the Columns shelf, it breaks down the view even further. You’ll now have columns for "Central," "East," "South," and "West." Your view is a grid where each cell represents sales for a specific category within a specific region. The blue pills have built the entire scaffold for your chart.

They Determine the Level of Detail (LOD)

Every discrete field you add to your view refines its "level of detail." This term sounds technical, but it’s simply about how granular your data is. The more discrete fields on your view, the deeper you’re drilling down.

Let's revisit the sales example:

  1. SUM(Sales) alone: The LOD is the entire dataset. You get one number.
  2. Add Category to Rows: The LOD is now at the Category level. You see three numbers, one for each category.
  3. Add Sub-Category to Rows: The LOD becomes even finer - the Sub-Category level. The "Technology" category is now broken down further into "Phones," "Accessories," "Copiers," and "Machines."

Each time you add a discrete dimension, you divide the visualization into more granular pieces. This functionality is crucial for spotting trends. Maybe your overall sales look fine, but by breaking them down by Region and Category (the level of detail), you discover that furniture sales are incredibly low in the South region - an insight that was hidden at a higher level.

They Act as Easy Sorting and Filtering Points

Because discrete fields create distinct "buckets" of data, they are perfect for controlling your visualization through sorting and filtering.

Filtering: When you drag a discrete field to the filter shelf, Tableau presents you with a list of its unique members. For the Region field, you'll see a checklist with Central, East, South, and West. You can easily include or exclude specific categories, giving you precise control over what data is displayed. A continuous filter, by contrast, gives you a slider for a range of values, which serves a different purpose.

Sorting: Tableau lets you easily rearrange the headers created by discrete fields. You can sort them alphabetically, manually drag them into a custom order, or sort them based on the value of a measure. For example, you can sort your Product Categories from highest sales to lowest, instantly showing you a ranked list of performance.

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

Understanding Discrete Dates (Blue Date Parts)

Dates are special because they can be either discrete or continuous, and understanding the difference is a common stumbling block for beginners.

When you use a discrete date (a blue pill), you are looking at the date parts independently of a timeline. For example:

  • Discrete Year: YEAR(Order Date) will create labels like '2021', '2022', '2023'.
  • Discrete Month: MONTH(Order Date) will create labels 'January', 'February', 'March', etc. It aggregates the data for that month across all years. Your 'January' column will show the combined total of January 2021, January 2022, and January 2023.

This is useful for analyzing seasonality. If you want to see which month is typically your best for sales, regardless of the year, a discrete month bar chart is the perfect tool. In contrast, a continuous month would create a time-series axis, plotting sales from Jan '21, Feb '21, March '21... all the way to Dec '23.

Common Use Cases for Discrete Fields

So, when should you reach for the blue pill? Here are a few common scenarios where discrete fields are essential.

Building Bar Charts to Compare Categories

This is the classic use case. You want to compare the sales totals for different products, the number of support tickets per agent, or the website traffic by marketing channel. In all these cases, a discrete dimension (Product, Agent, Channel) provides the categories to compare, and a continuous measure (Sales, Ticket Count, Sessions) provides the magnitude.

Organizing Data in Text Tables (Crosstabs)

Spreadsheet-style reports, or crosstabs, rely almost entirely on discrete fields to create the structure of rows and columns. Placing a few discrete dimensions on the Rows shelf and another on the Columns shelf creates a grid. You can then drop a numeric measure onto the Text mark to populate that grid with values.

Creating Hierarchies with Stacked Bars or Tree Maps

Discrete fields are excellent for adding layers of information to your charts through the Marks card (like Color, Detail, or Size). For example, after creating a bar chart showing sales by region, you can drag another discrete field like Segment ("Consumer," "Corporate," "Home Office") onto the Color mark. This splits each regional bar into colored segments, showing you the contribution of each segment within that region - a simple and visually effective way to add more detail.

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.

Switching Hats: Converting Between Discrete and Continuous

Remember, Tableau’s suggestions aren't set in stone. You can easily switch a field's role by right-clicking its pill in the view and selecting "Discrete" or "Continuous." You can also do this by dragging the field from the Measures pane to the Dimensions pane (or vice versa).

When would you do this? Here's a common example: fields like Order ID or Customer ID are often stored as numbers. Tableau sees numbers and assumes they are continuous measures, wanting to sum or average them. But it makes no sense to SUM(Order ID). In this case, you should convert that field to a discrete dimension. This tells Tableau to treat each ID as a unique label, allowing you to, for example, count the number of orders or list details for each unique order ID.

Understanding this flexibility is a key step in moving from a beginner to an intermediate Tableau user.

Final Thoughts

Discrete fields are the organizational force in your Tableau dashboards. As blue pills, they build the structure by creating distinct headers and labels, defining the granularity of your analysis, and categorizing your data into understandable chunks. They are essential for comparing performance across categories, organizing tabular reports, and creating insightful hierarchies.

While mastering nuances like discrete versus continuous fields is a crucial part of learning data visualization tools, it often involves a learning curve. At Graphed, we focus on letting you get straight to the insights. By using simple, natural language, you can ask questions like, "Show me a bar chart of our sales by product category, sorted from highest to lowest" or "Create a timeline of our ad spend vs. revenue for the last quarter." Our AI analyst handles the technical setup - deciding on discrete fields for categories and continuous fields for axes - and instantly builds live dashboards connected directly to your data sources. We turn hours of learning and building into a 30-second conversation, giving you back the time to make better decisions. To see how easy data analysis can be, try Graphed today.

Related Articles