Last Modified Date: 05 Feb 2018
- Tableau Desktop 8.0 and later
- Tableau Server 8.0 and later
- Blended data
- Published data source
Create a table calculation to mimic COUNTD:
- In Tableau Desktop, open the worksheet with the invalid field.
- Select Analysis > Create Calculated Field.
- In the Calculated Field dialog box, do the following and then click OK:
- Name the calculated field. In this example, the calculated field is named Manual COUNTD.
- In the formula field, create a calculated field similar to the following:
IF FIRST()=0 THEN WINDOW_SUM(MIN(1)) END
- In the view, replace the invalid field with Manual COUNTD.
- Drag the dimension used in the original COUNTD calculation to Detail.
- In the view, right-click Manual COUNTD, and then select Edit Table Calculation.
- In the Table Calculation dialog box, for Compute using, select the dimension used in the original COUNTD calculation, and then click OK.
CauseTableau uses temporary tables to perform non-additive aggregations, such as COUNTD, MEDIAN, and RAWSQLAGG in blended data.
- In version 8.0 of Tableau Server and Tableau Desktop, temporary tables were not available for published data sources.
- Temporary tables for published data sources are available from versions 9.0 of Tableau Server. Non-Additive aggregations will function with published data sources as long as the published data source is the primary. For more information, please see "whats new in Tableau Server" under 'Faster Performance'.
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Training and Tutorials