Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Tableau 10 Complete Reference

You're reading from   Tableau 10 Complete Reference Transform your business with rich data visualizations and interactive dashboards with Tableau 10

Arrow left icon
Product type Course
Published in Dec 2018
Publisher Packt
ISBN-13 9781789957082
Length 496 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Joshua N. Milligan Joshua N. Milligan
Author Profile Icon Joshua N. Milligan
Joshua N. Milligan
Tristan Guillevin Tristan Guillevin
Author Profile Icon Tristan Guillevin
Tristan Guillevin
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Title Page
About Packt
Contributors
Preface
1. Creating Your First Visualizations and Dashboard 2. Working with Data in Tableau FREE CHAPTER 3. Moving from Foundational to More Advanced Visualizations 4. Using Row-Level, Aggregate, and Level of Detail Calculations 5. Table Calculations 6. Formatting a Visualization to Look Great and Work Well 7. Telling a Data Story with Dashboards 8. Deeper Analysis - Trends, Clustering, Distributions, and Forecasting 9. Making Data Work for You 10. Advanced Visualizations, Techniques, Tips, and Tricks 11. Sharing Your Data Story 12. Catching Up with Tableau 2018 13. Deal with Security 14. How to Keep Growing Your Skills 1. Other Books You May Enjoy Index

Ad hoc calculations


Ad hoc calculations add calculated fields to shelves in a single view without adding fields to the data pane.

Let's say that you have a simple view, which shows the Price per Renter, as shown:

What if you want to quickly highlight any renters who had a contract of at least $2000? One option would be to create an ad hoc calculation. To do so, simply double-click on an empty area of the Columns, Rows, or Measure Values cards, or on the empty space of the Marks shelf, and then start typing the code for a calculation. In this example, we've double-clicked on the empty space on the Marks shelf:

Here, we've entered the code that will return True if the sum of Price is at least $2000 and False otherwise. Pressing Enter or clicking outside the text box will reveal a new ad hoc field that can be dragged and dropped anywhere within the view. Here, we've added it to the Color shelf:

The ad hoc field is only available within the view and does not show up in the data pane. You can double...

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 $19.99/month. Cancel anytime
Banner background image