Reader small image

You're reading from  Learning Tableau

Product typeBook
Published inApr 2015
PublisherPackt
ISBN-139781784391164
Edition1st Edition
Tools
Right arrow
Author (1)
Joshua N. Milligan
Joshua N. Milligan
author image
Joshua N. Milligan

Joshua N. Milligan is a Hall of Fame Tableau Zen Master and 2017 Iron Viz Global finalist. His passion is training, mentoring, and helping people gain insights and make decisions based on their data through data visualization using Tableau and data cleaning and structuring using Tableau Prep. He is a principal consultant at Teknion Data Solutions, where he has served clients in numerous industries since 2004.
Read more about Joshua N. Milligan

Right arrow

Quick table calculations


Quick table calculations are predefined table calculations that can be applied to any field used as a measure in the view. These calculations include common and useful calculations such as the running total, difference, percent difference, percent of total, rank, percentile, moving average, YTD total, compound growth rate, year over year growth, and YTD growth. These calculations do not show up as separate fields in the Data window.

Consider the following example using the sample Superstore Sales data:

Here, Sales is shown twice using Measure Names and Measure Values. The second SUM(Sales) field has the Percent of Total quick table calculation applied. Each value shown in the Sales column is the sum of sales for that department and category. The value shown in the % of Total Sales column is the sum of sales for that department and category divided by the total sum of sales. Using the quick table calculation avoided writing any code.

Tip

You can actually see the code...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Tableau
Published in: Apr 2015Publisher: PacktISBN-13: 9781784391164

Author (1)

author image
Joshua N. Milligan

Joshua N. Milligan is a Hall of Fame Tableau Zen Master and 2017 Iron Viz Global finalist. His passion is training, mentoring, and helping people gain insights and make decisions based on their data through data visualization using Tableau and data cleaning and structuring using Tableau Prep. He is a principal consultant at Teknion Data Solutions, where he has served clients in numerous industries since 2004.
Read more about Joshua N. Milligan