I know that the ATTR function is used for aggregation, but can someone explain it in simple terms?
Asked
Active
Viewed 1.0k times
3 Answers
8
In the most simplest of terms, ATTR returns a value if it is unique, otherwise it returns "*". I think you'll find this link helpful with examples.
https://www.interworks.com/blog/tcostello/2014/05/15/attr-tableaus-attribute-function-explained
![](../../users/profiles/4829177.webp)
Bernardo
- 2,907
- 1
- 8
- 16
0
ATTR is like using an already aggregated field for comparison with another aggregated field. Measures are taken as aggregated fields while dimension's aren't. If you have created a field which is already aggregated and still you want to use this field as measure it will be shown as ATTR as it cannot be further aggregated but is behaving like it has.
![](../../users/profiles/2884859.webp)
AnilGoyal
- 14,820
- 3
- 16
- 30