Practical examples
Having looked at some of the foundational concepts of table calculations, let's consider some practical examples. We'll start with some simple ones and move toward complexity.
Year – over – Year growth
Often, businesses want to compare year over year values, meaning they want to see how quarters (or months or weeks) in one year compared with the same quarters (or months or weeks) in the previous year.
Tableau exposes Year over Year Growth as one option in the Quick Table Calculations. Here, for example, is a view that demonstrates Sales by Quarter along with the percent difference in sales for a quarter compared with the same quarter in the previous year, as shown:
The second Sum(Sales) field has had the Year over Year Growth ...
Get Learning Tableau 10 - Second Edition 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.