course_dv

Data Refinements in Tableau

This section covers data refinements in Tableau.

Outcomes:

Links:

Grouping Data Values

We often have category data that we want to group together for analysis. For example, we may have sales data by state, but want to group states into regions (i.e., Northeast, Midwest, South, West).

There are several ways to group data in Tableau:

Calculation

Calculated fields allow you to create new data fields based on existing data. Each results in a new column displayed in your data pane that can be used in visualizations.

Common functions include:

Bins

A bin is a way to group continuous data into discrete intervals. For example, you may want to group ages into bins of 0-10, 11-20, 21-30, etc…

This is automatically done in Tableau by right-clicking on a continuous measure and selecting “Create Bins”. You can then specify the bin size. These will be created for you when you create a histogram.

You may also want to create custom bins using calculated fields. For example, you can create a calculated field with an IF statement to define your own bin ranges. One good technique is to use the FLOOR() function to round down values to the nearest bin size.

For example, to round 123 to the nearest 10, you can use:

FLOOR([Value] / 10) * 10

Be sure to use floor instead of round, since round will round up values (i.e., 125 would round to 130, while floor would round to 120).

Quick Table Calculations

Tableau has a feature called Quick Table Calculations that allows you to easily create common calculations on your data without writing complex formulas.

Common features include:

To use Quick Table Calculations: