Video | Tableau | Data visualisation | Analytics

The Total function in Tableau & partitions

Find out why the total function shouldn't be considered as a mathematical total.

  • TOTAL computes a single value across the whole partition and then repeats that value in every cell, so it isn't the same as SUM.
  • A partition defines the direction Tableau looks when calculating; table down looks at the entire table while pane down looks at each individual pane.
  • Adding more pills to the rows shelf shrinks the definition of a pane, which changes what TOTAL returns.
  • TOTAL(AVG([Sales])) returns the average of every underlying record in the partition, not the average of the visible aggregated values, which is a common source of confusion.
  • Think about what the function actually does rather than its name, since TOTAL works with any expression including averages.

The total function in Tableau takes whatever expression you give it and computes it for the whole data set in your partition. i.e. the totality of the data set. It’s not to be confused with totalling up your data or summing up your values. Dive into this video to find out more about partitions and the function itself.

Timestamps

0:00 Intro

0:14 How the Total function works

2:25 How partitions are defined

8:20 Using Total with an Average

9:50 Outro