Perform Table Calculations in Tableau

Last updated on Oct 25 2021
Anand Vishwanathan

Table of Contents

Perform Table Calculations in Tableau

A table calculation is a transformation that applies to the values in a visualization. Table calculation is a special type of calculated field that computes on the local data in Tableau.

They are calculated based on current visualization and do not consider any dimensions or measures that are filtered out of the visualization.

These calculations are applied to the values of the entire table, not on the some selected rows or columns.

Table calculations are used for a variety of purposes, such as:

  • Transforming values to rankings.
  • Transforming values to show running totals.
  • Transforming values to show the percent of the total.

For any Tableau visualization, there is a virtual table which is determined by the dimensions in the view. This table is not the same as the tables in your data source. Mainly, the virtual table is determined by the dimensions within the “level of detail” means the dimensions on any of the following shelves in a Tableau worksheet:

Page 1 Image 1 34
level of detail

For example, for calculating an average, we need to apply a single method of calculations on an entire column. These calculations cannot be performed on some selected rows.

The table has a feature known as “Quick Table Calculations“, which is used to create such calculations.

Following are the steps applied in quick table calculations as:

Step1: Select the Measure on which the table calculation has to be used and drag it to the column shelf.

Step2: Right-click on the Measure and choose the option Quick Table Calculation.

Step3: Choose one option among the following options to be applied to the Measure.

  • Running Total
  • Difference
  • Percent Difference
  • Percent of Total
  • Rank
  • Percentile
  • Moving Average
  • Year to Date (YTD) Total
  • Compound Growth Rate
  • Year over Year Growth
  • Year to Date (YTD) Growth

1. Table (Across): It computes across the length of the table and restarts after every partition.

For example, in the below screenshot, the calculation is computed across columns such as “Year (Order Date)” for every row such as “Month (Order Date)”.

Page 2 Image 2 32
Table (Across)

2. Table (Down): It computes down the length of the table and restarts after every partition.

For example, in the below screenshot, the calculation is computed down rows such as “Month (Order Date)” for every column such as “Year (Order Date)”.

Page 3 Image 3 11
Table (Down)

3. Table (Across then Down): It computes across the length of the table, and then down the length of the table.

For example, in the below screenshot, the calculation is computed across columns such as “Year (Order Date)”, down a row such as “Month (Order Date)”, and then across columns again for the entire table.

Page 4 Image 4 9
Table (Across then Down)

4. Table (Down then Across): It computes down the length of the table, and then across the length of the table.

For example, in the below screenshot, the calculation is computed down rows such as “Month (Order Date)”, across a column such as “Year (Order Date)”, and then down rows again.

Page 4 Image 5 8
Table (Down then Across)

5. Pane (Down): It computes down an entire pane.

For example, in the below screenshot, the calculation is computed down rows such as “Month (Order Date)” for a single pane.

Page 5 Image 6 7
Pane (Down)

6. Pane (Across then Down): It computes across an entire pane and then down the pane.

For example: In the below screenshot, the calculation is computed across columns such as “Year (Order Date)” for the length of the pane, down a row such as “Month (Order Date)”, and then across columns for the length of the pane again.

Page 6 Image 7 4
Pane (Across then Down)

7. Pane (Down then Across): It computes down an entire pane and then across the pane.

For example, in the below screenshot, the calculation is computed down rows such as “Month (Order Date)” for the length of the pane, across a column such as “Year (Order Date)”, and then down the length of the pane again.

Page 6 Image 8 6
Pane (Down then Across)

So, this brings us to the end of blog. This Tecklearn ‘Perform Table Calculations in Tableau’ blog helps you with commonly asked questions if you are looking out for a job in Tableau Desktop. If you wish to learn Tableau Desktop and build a career in Business Intelligence domain, then check out our interactive, Tableau Desktop Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/tableau-desktop/

Tableau Desktop Training

About the Course

Tecklearn’s Tableau Desktop Training teach you how to transform raw data into interactive and shareable dashboards using Tableau. Our Tableau Course covers the necessary analytical skills to Advanced data visualizations by incorporating real-world use-case scenarios, labs, and exercises. Some of the topics included are Data Blending, Data Mapping, Graphs, creation of charts, and LOD expression by using different versions of Tableau, such as Tableau Desktop, Tableau Reader, and Tableau Public.

Why Should you take Tableau Desktop Training?

  • The average salary of a Tableau Professional ranges between $108,697 to $158,000 per annum -Indeed.com.
  • Tableau has been positioned as a Leader in the Gartner Magic Quadrant for Analytics and Business Intelligence Platforms – Gartner.com.
  • Fidelity Investments, Capgemini, EY, Deloitte, EY, JP Morgan, Verizon, Facebook, Dell, General Motors, KPMG, Bank of America and 40,000 other MNCs worldwide across industries use Tableau.

What you will Learn in this Course?

Understanding Tableau

  • Why Tableau
  • Tableau Product Platforms
  • Tableau Architecture
  • Tableau Interface

Data Connection with Tableau Desktop

  • Features of Tableau Desktop
  • Connect to data from File and Database
  • Types of Connections
  • Data Blending
  • Joins and Unions
  • Tableau Desktop User Interface
  • Basic project: Create a workbook and publish it on Tableau Online

Basic Visual Analytics

  • Visual Analytics
  • Basic Charts: Bar Chart, Line Chart, and Pie Chart
  • Hierarchies
  • Data Granularity
  • Highlighting
  • Sorting
  • Filtering
  • Grouping
  • Sets

Advanced Visual Analytics

  • Parameters
  • Tool tips
  • Trend lines
  • Reference lines
  • Forecasting
  • Clustering

Calculations in Tableau

  • Calculated Fields
  • Numeric, String, Data, Logical, Addressing and Partitioning
  • Table Calculations

Level of Detail (LOD’s) Calculations

Advanced Charts in Tableau

  • Box and Whisker’s Plot
  • Bullet Chart
  • Bar in Bar Chart
  • Gantt Chart
  • Waterfall Chart
  • Pareto Chart
  • Control Chart
  • Funnel Chart
  • Bump Chart

Parameters

  • What If Scenarios
  • Parameter in CF (KPI control)
  • Parameter in Filter (Top N)
  • Parameter in reference line

Dashboards and Stories

  • Introduction to Dashboards
  • The Dashboard Interface
  • Dashboard Objects
  • Building a Dashboard
  • Dashboard Layouts and Formatting
  • Interactive Dashboards with actions
  • Designing Dashboards for devices
  • Story Points

Data Security in Tableau

Optimizations tips and tricks

Interacting with Tableau Server

Working with Tableau JavaScript API

Got a question for us? Please mention it in the comments section and we will get back to you.

0 responses on "Perform Table Calculations in Tableau"

Leave a Message

Your email address will not be published. Required fields are marked *