Get the Most Out of Your Data with Tableau’s Mighty Aggregate Functions

In Tableau, aggregate functions are used to perform calculations on a set of values and return a single result. Here are some common aggregate functions that are used in Tableau:

  1. SUM: This function returns the sum of all values in a field.
  2. AVG: This function returns the average of all values in a field.
  3. MIN: Returns the minimum value in a field.
  4. MAX: Returns the maximum value in a field.
  5. MEDIAN: Returns the median value in a field (the value that is in the middle of the set of values when they are sorted).
  6. COUNT: This function returns the number of values in a field.
  7. COUNTD: Returns the number of distinct values in a field.
  8. STDEV: The standard deviation of all values in a field is returned.
  9. VAR: Returns the variance of all values in a field.
  10. FIRST: Returns the first value in a field.
  11. LAST: Returns the last value in a field.
  12. RANK: The rank of a value in a field is returned (for example, the third highest value would have a rank of 3).
  13. PERCENTILE: Returns the value at a specified percentile in a field.
  14. PERCENTILE_INC: Returns the value at a specified percentile in a field, using the inclusive method for calculating percentiles.
  15. PERCENTILE_EXC: Returns the value at a specified percentile in a field, using the exclusive method for calculating percentiles.
  16. VARIANCE(expression): Returns the variance of a field or expression.
  17. STDEVP(expression): Returns the standard deviation of a field or expression, using the population method.

Aggregate functions can be used in calculated fields or as part of the calculation for a chart or visualization. They can also be used with other functions, such as window functions, to perform more advanced calculations on data.

Leave a Reply

Your email address will not be published. Required fields are marked *