Video | Tableau | Data visualisation | Analytics

What is ATTR (...) aka Attribute function in Tableau?

A video to walk you through how the Attribute function works in Tableau.

  • ATTR is an aggregate function that returns a single value if all rows in a group share one value, otherwise it displays an asterisk (null values are ignored)
  • Use ATTR to signal hidden detail beneath a mark, surface dimension values in tooltips, and resolve 'cannot mix aggregate and non-aggregate' errors in calculations
  • Setting a dimension pill to Attribute (via its drop-down) stops it from affecting the visualisation's level of detail while keeping it available in the marks pane
  • ATTR strips out dynamic sorting, can break grand totals, and is slower than MIN/MAX, which often achieve the same result more efficiently
  • Aggregation issues in calculations frequently point to a data prep problem better solved earlier in the stack, or with LOD expressions

The Attribute function is commonly used but not often well understood. It’s also used to help clear aggregation errors in Tableau but it’s quite easy to use it without understanding why. In this video, I explain some use cases, some limitations and how to use it.

Tableau release Notes / KB on the function with sample workbook >>.