Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Tableau 2019.1 - Second Edition

You're reading from  Mastering Tableau 2019.1 - Second Edition

Product type Book
Published in Feb 2019
Publisher
ISBN-13 9781789533880
Pages 558 pages
Edition 2nd Edition
Languages
Authors (2):
Marleen Meier Marleen Meier
Profile icon Marleen Meier
David Baldwin David Baldwin
Profile icon David Baldwin
View More author details
Toc

Table of Contents (20) Chapters close

Preface 1. Section 1: Tableau Concepts, Basics
2. Getting Up to Speed - A Review of the Basics 3. All About Data - Getting Your Data Ready 4. Tableau Prep 5. All About Data - Joins, Blends, and Data Structures 6. All About Data - Data Densification, Cubes, and Big Data 7. Table Calculations 8. Level of Detail Calculations 9. Section 2: Advanced Calculations, Mapping, Visualizations
10. Beyond the Basic Chart Types 11. Mapping 12. Tableau for Presentations 13. Visualization Best Practices and Dashboard Design 14. Advanced Analytics 15. Improving Performance 16. Section 3: Connecting Tableau to R, Python, and Matlab
17. Interacting with Tableau Server 18. Programming Tool Integration 19. Other Books You May Enjoy

Directional and non-directional table calculations

Let us have a closer look at directional and non-directional table calculations:

  1. Navigate to https://public.tableau.com/profile/marleen.meier to locate and download the workbook associated with this chapter.
  2. Navigate to the Directional/Non-Directional worksheet.
  3. Create the calculated fields, as shown in the following table:

Name

Calculation

Notes

Lookup

LOOKUP(SUM([Sales]),-1)

Notice the -1 included in this calculation. This instructs Tableau to retrieve the value from the previous row.

Size

SIZE()

As Tableau help states, the SIZE function returns the number of rows in the partition. Therefore, as can be seen in the following screenshot, the size equals the total number of rows.

Window Sum

WINDOW_SUM(SUM([Sales]))

The Window sum functions (WINDOW_SUM(expression, [start, end]) can operate either...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime