Creating and editing calculations

A calculation is often referred to as a calculated field in Tableau. This is because, when you create a calculation, it will either show up as a new measure or a dimension in the data pane (unless it is an ad hoc calculation). Calculations consist of code that references other fields, parameters, constants, groups, or sets, and use combinations of functions and operations to achieve a result. Sometimes this result is per row of data and sometimes it is done at an aggregate level. We'll consider the difference shortly.

There are multiple ways to create a calculated field in Tableau:

  1. Navigate to Analysis | Create Calculated Field... from the menu.
  2. Use the drop-down menu next to Dimensions in the data pane: ...

Get Tableau 10 Complete Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.