KNOWLEDGE BASE

Grand Totals Are Blank For Calculated Field That Include ATTR() Including Fields That Blend Data From Multiple Data Sources


Published: 03 May 2016
Last Modified Date: 12 Dec 2016

Issue

When attempting to turn on grand totals for calculated field using ATTR(), then results are NULL.

Environment

Tableau Desktop

Resolution

Replace ATTR() with MIN() in the calculated field

Cause

ATTR() returns NULL when there are multiple values, and all dimension values are in the scope of the grand totals row. Thus ATTR() would return NULL in the grand totals row.

By default Tableau Desktop wraps fields from a secondary data source in an aggregation in calculated fields. If this aggregation is ATTR() then the grand totals may be blank.

Additional Information

While replacing ATTR() with MIN() will cause "Automatic" grand totals to show, the grand totals might not be the expected values. To fix grand total values, please see the following Knowledge Base article: Grand Totals and Subtotals Do Not Show Expected Numbers
Did this article resolve the issue?