-
Book Overview & Buying
-
Table Of Contents
Mastering Tableau 2026 - Fifth Edition
By :
R scripts are table calculations. Like all table calculations, this means that you can only utilize fields that are on your view. Also, it's important that you set partitioning and addressing correctly; otherwise, you may receive unexpected results.
In the Introducing quantiles section, you may have noticed that the greater the number of quantiles set with the Number of quantiles parameter, the longer it takes the results to display. This is because R runs the loops in the Quantile calculated field one iteration for each quantile. For example, if the Number of quantiles parameter is set to 1, the loop is instigated only once. If it is set to 2, it runs twice, and so forth. The rule of thumb is that R code is executed once for every partition. The more partitions, the slower the performance. Therefore, when using R code, reduce the number of partitions whenever possible.
This was the R part of this chapter. I hope you enjoyed it and that it has given...