Primary Functions: Tableau Desktop Reference Guide
Primary Functions: Tableau Desktop Reference Guide
Primary Functions
Tableau Desktop Reference Guide
The primary functions perform computations on the table.
Note that since the calculations are computed on the aggregated table data, field arguments for these functions must be aggregated as well, for example
SUM([Profit]).
In the WINDOW functions, the window is defined by means of offsets from the current row. Use the helper functions FIRST ()+n and LAST()-n for offsets
from the first or last row in the partition. If the start and end are omitted, the entire partition is used.
To calculate a population and sample standard deviation and variance, use the WINDOW_STDEV,
To calculate the measure or extent of joint variability of two expressions within a window, use the WINDOW_CORR, WINDOW_COVAR, and WINDOW_
COVARP functions.
In the RANK functions you can optionally use ‘asc’ or ‘desc’ to specify the ranking order. The default is descending.
Nulls are ignored in ranking functions. They are not numbered and they do not count against the total number of records in percentile rank calculations.
The RANK functions vary on how they process identical values, such as when the ranks for the set of values (6, 9, 9, 14) are computed:
2 of 2
TABLEAU.COM/ELEARNING