Aggregate Functions: Tableau Desktop Reference Guide
Aggregate Functions: Tableau Desktop Reference Guide
Aggregate Functions
Tableau Desktop Reference Guide
The aggregate functions allow you to summarize data, for example by calculating the average of numbers in a measure. Aggregate functions perform a
calculation on a set of values, at the level of granularity of the view, and return a single value. An aggregated calculation appears with the letters AGG in
front of it when placed on a shelf or on the Marks card.
To calculate a population and sample standard deviation and variance, use the STDEV, STDEVP, VAR, and VARP functions.
To calculate the measure or extent of joint variability of two expressions, use the CORR, COVAR, and COVARP functions.
NOTE The expressions used in any function must either all be aggregated or all disaggregated. The MAX, MIN, and ATTR functions allow you to have all
expressions in a function use a similar aggregation level.
Examples
These are examples of the aggregate functions:
1 of 2
TABLEAU.COM/ELEARNING
CORR(expression1, expression2) Returns the Pearson correlation coefficient of the CORR([Sales], [Profit]) returns a value from -1 to 1.
two expressions. The result is equal to 1 for an exact positive linear
relationship, 0 for no linear relationship, and -1
for an exact negative linear relationship.
COVAR(expression1, expression2) Returns the sample covariance of two expressions. COVAR([Sales], [Profit]) returns a positive number
If the two expressions are the same, a value is if the expressions tend to vary together, on
COVARP is similar, but for a population, instead of
returned that indicates how widely the variables average.
a sample
are distributed.
2 of 2
TABLEAU.COM/ELEARNING