What is a Pill in Tableau?
If you’ve just opened Tableau for the first time, you are immediately confronted with a workspace full of shelves, cards, and a curious term: "pills." These little colored lozenges are the fundamental building blocks of every single visualization you'll create. Understanding what they are and how they work is the most important step in moving from a beginner to a confident Tableau user. This guide will walk you through everything you need to know about Tableau pills, from their colors and shapes to how you can use them to build insightful charts.
What are Tableau Pills, Anyway?
In the simplest terms, a Tableau pill is a visual, drag-and-drop representation of a data field from your dataset (like 'Sales', 'Customer Name', or 'Order Date'). Instead of writing code or complex formulas, you build charts by dragging these pills onto different areas of your workbook, called "shelves."
Think of it like cooking. Your data fields are the ingredients you have available in your pantry. When you want to use an ingredient in your recipe (your chart), you take it out and place it in the mixing bowl (a shelf). Each pill you add contributes to the final dish. The power of Tableau lies in how these simple pill movements can create incredibly complex and interactive visualizations.
Every field in your Data pane on the left side of the screen can be dragged into your view, and when it is, it becomes a pill.
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.
The Two Colors of Pills: Blue vs. Green
The first thing you will notice is that pills come in two colors: blue and green. This isn't just for decoration, the color is the single most important piece of information a pill gives you. It tells you whether the data is discrete (blue) or continuous (green).
This distinction between discrete and continuous might sound academic, but it's a practical concept that controls how Tableau draws your charts. Getting this part down will make everything else click into place.
Blue Pills Mean Discrete Data
Discrete data is finite and consists of separate, distinct values. You can count the individual items, but you can't have a value that falls between two of them. Think of them as categories.
- Examples: Customer names, country names, product categories (e.g., 'Furniture', 'Office Supplies', 'Technology'), or shoe sizes. You can be in the USA or Canada, but not somewhere in-between. You sell furniture or you sell office supplies. These are distinct buckets.
- What they do in Tableau: When you drag a blue pill into your view (onto the Rows or Columns shelf), it creates headers or labels. It slices your data into separate panes for each member of that field.
Green Pills Mean Continuous Data
Continuous data, on the other hand, flows from one value to the next. It’s numeric, and you can always find another value between any two points. Think of them as measurements.
- Examples: Sales totals, temperature, profit margins, or someone's height. You can have sales of $100.50, which falls between $100 and $101. The values form an unbroken range.
- What they do in Tableau: When you drag a green pill into your view, it creates an axis. Tableau plots your data points along this continuous axis, which allows you to visualize trends, compare magnitudes, and see distributions.
A Simple Analogy to Remember
Imagine you're organizing your books.
- Your blue pills are the labels for your bookshelves: "Fiction," "History," "Science." They create distinct sections (headers) for your books.
- Your green pills are how many pages each book has. You could line them all up on a spectrum from shortest to longest (an axis). The number of pages is a continuous measurement.
In short: Blue pills create headers and sort your data, Green pills create axes and measure your data.
Dimensions vs. Measures
Closely related to the blue/green concept is Dimensions vs. Measures. When you first connect your data, Tableau automatically sorts your data fields into these two categories in the Data pane.
- Dimensions: These are qualitative fields that provide context and are used to categorize or "slice" your data. They are things you analyze your numbers by. By default, dimensions are blue (discrete). Examples include Region, Product ID, and Customer Segment.
- Measures: These are the quantitative, numeric fields you want to analyze. They are the numbers you perform calculations on (like sum, average, or count). By default, measures are green (continuous). Examples include Sales, Profit, and Quantity.
Tableau's default settings are usually correct, but you have the power to change any pill from discrete to continuous (or vice versa) and from a dimension to a measure. For now, just remember this key relationship:
Dimensions are typically blue and discrete. They create headers. Measures are typically green and continuous. They create axes.
Meet the Shelves: Where Your Pills Live
Now that you know what pills are, where do you put them? Tableau has several "shelves" in the workspace, and each one makes a pill behave differently.
Columns and Rows Shelves: These are the two most important shelves and form the basic structure of your chart.
- Pills on the Columns shelf typically create the x-axis (from left to right).
- Pills on the Rows shelf typically create the y-axis (from top to bottom).
The Marks Card: This powerful card controls the visual properties of the data points, or "marks," in your chart (like the bars in a bar chart or the dots in a scatter plot). Dropping pills here adds detail and context.
- Color: Drop a dimension here (like 'Region') to give a different color to the marks for each region. Drop a measure here (like 'Profit') to create a color gradient based on the profit value.
- Size: Controls the size of the marks. For example, in a map, you could make the circle for each city bigger based on its total sales.
- Label: Drop a pill here to display its value as a text label on each mark.
- Detail: Use this to break down the view to a lower level of granularity without changing the overall structure of the chart. For example, if you have bars showing sales by region, you could drop 'State' onto Detail to create smaller segments within each bar representing the individual states.
- Tooltip: Add fields here to appear in the pop-up box when you hover over a mark. It's a great way to provide more context without cluttering the view.
Filters Shelf: Any pill placed here acts as a filter, allowing you to include or exclude data from your view. For instance, drag 'Order Date' here to show data from only the last year, or drag 'Category' here to exclude 'Office Supplies' from your bar chart.
Building a Chart with Pills: A Step-by-Step Example
Let's put all this theory into practice. Our goal is to create a simple bar chart showing total sales for each product category.
Step 1: Create the Categories (Headers)
First, we need to tell Tableau how to slice our data. A product category is a discrete value that will serve as our headers.
- Navigate to your Data pane on the left.
- Find the Category field. Notice that Tableau has classified it as a Dimension.
- Click and drag the Category field and drop it onto the Columns shelf.
Instantly, you'll see a blue "Category" pill appear on the Columns shelf. In the main view, three headers appear: "Furniture," "Office Supplies," and "Technology." You've created the buckets for your visualization.
Step 2: Add the Numerical Data (Measure)
Now, we need to fill those buckets with a value. We want to see the total sales for each category, which is a continuous value that's perfect for an axis.
- Find the Sales field in the Data pane. Tableau has classified it as a Measure.
- Click and drag the Sales field and drop it onto the Rows shelf.
A green pill, "SUM(Sales)," appears on the Rows shelf, and Tableau works its magic. A vertical axis for sales is created, and three bars are drawn - one for each category, with their length corresponding to the total sales. Just like that, you have a bar chart!
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 3: Add Detail with the Marks Card
Let's take it one step further. What if we want to see how different customer segments contribute to the sales within each category? The Marks card is perfect for this.
- Find the Segment field in your Data pane (it’s a Dimension).
- Click and drag Segment and drop it onto the Color shelf on the Marks Card.
Tableau instantly splits each of your three bars into smaller, color-coded sections representing the 'Consumer', 'Corporate', and 'Home Office' segments. A color legend is automatically created. You didn't just create a chart, with one more drag of a pill, you added another layer of insight.
Final Thoughts
Mastering Tableau is all about understanding what happens when you move these little colored pills from one shelf to another. Blue pills create headers, green pills create axes, and everything placed on the Marks card adds layers of detail and formatting. Learning these core concepts gives you the power to translate questions about your data into clear and effective visualizations.
Of course, becoming proficient in tools like Tableau takes time and practice. At Graphed we thought there should be an easier way. We built a tool that lets you create dashboards without manually dragging pills or learning the difference between discrete and continuous. You can simply connect your data sources - like Google Analytics, Shopify, or Salesforce - and ask for what you want in plain English, like "Show me my sales by product category as a bar chart." The right visualization appears instantly, giving you back the time to focus on insights, not on learning new software.
Related Articles
Facebook Ads for Carpet Cleaners: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for carpet cleaning businesses in 2026. Get proven strategies for targeting, creative formats, retargeting, and budget that actually convert.
Facebook Ads For Personal Trainers: The Complete 2026 Strategy Guide
Learn how to effectively use Facebook ads for personal trainers in 2026. This comprehensive guide covers targeting strategies, ad creative, budgeting, and optimization techniques to help you grow your training business.
Facebook Ads for HVAC Companies: The Complete 2026 Strategy Guide
Learn how to run high-converting Facebook ads for HVAC companies in 2026. This guide covers targeting, creative strategies, and proven campaigns that drive real leads.