MIP Logo

Table calculations

This post was originally published on The Data School blog between 2018 and July 2025, before our program was renamed to MIP’s Analytics Career Accelerator. References throughout this article to “The Data School” or “DS” all refer to what is now MIP’s Analytics Career Accelerator. The program, its people, and its commitment to launching outstanding analytics careers remain the same – just under a new name.

If you are having trouble viewing this article, please report it here

What are table calculations?

  • Special types of calculated fields performed on the local data in Tableau, based on what is currently visible in the visualisation
  • They ignore all other measures and dimensions

What are they for?

  • Perform quick, context-based calculations
  • Transforms measures without altering the dataset
  • Performs post-aggregation computations such as running totals and moving averages
  • Performs comparative analysis such as percent difference and index

 

1. Build your chart as you normally would

This chart currently shows the daily trend of gross income – which is fine if you want to investigate if some days have higher or lower incomes. However, this chart doesn’t let you track the cumulative progress of income, which is what you’d want to do if you have sales target to achieve.

A line chart

2. On your measure card, apply Running Total table calculation

3. Add reference line for sales target

Now your line chart is showing the cumulative total of daily sales. You can also add a reference line with sales target, which allows you to track progress and set up alerts.

Direction of table calculation

You can customise the calculation’s direction on the table based on the goal of your task. To do this, click your measure card and select Edit Table Calculation.

1. Table across

In this chart, choosing Table across direction will calculate the percentage of sales of each drink category across the years.

2. Table down

In this chart, choosing Table down direction will calculate the percentage of yearly sales of every drink category.

Conclusion

Table calculations quickly transform measures on current visualisation without changing the dataset.

 

Share this post