Book Image

Learning Tableau

By : Joshua N. Milligan
Book Image

Learning Tableau

By: Joshua N. Milligan

Overview of this book

Table of Contents (18 chapters)
Learning Tableau
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
8
Adding Value to Analysis – Trends, Distributions, and Forecasting
Index

Performance considerations


When working with a small dataset and an efficient database, you often won't notice inefficient calculations. With larger datasets, the efficiency of your calculations can start to make a fairly dramatic difference to the speed at which a view is rendered.

Here are some tips to get the most efficiency in your calculations:

  • Boolean and numeric calculations are faster than string calculations. If possible, avoid string manipulation and use aliasing or formatting to provide user-friendly labels. For example, don't write this code: IF [value] == 1 THEN "Yes" ELSE "No" END. Instead, simply write [value] == 1, then edit the aliases of the field, and set True to "Yes" and False to "No".

  • Always look for ways to increase the efficiency of a calculation. If you find yourself writing a long IF, ELSEIF statement with lots of conditions, see whether there are one or two conditions that you can check first to eliminate checks of all the other conditions. For example, let's consider...