When a PRIMARY KEY is defined on the Amazon Redshift database, an aggregate function may return incorrect results when the workbook is using a live connection. For example, the result of the COUNTD function may be incorrect with a live connection after publishing the workbook.
Do not define primary and foreign key constraints in DDL when creating tables in Amazon Redshift.
Create and use an extract in Tableau.
For more details, refer to Create an extract and Create Extracts on the Web.
Edit the data source, generate and use a custom SQL query in Tableau by converting a Connection to Custom SQL.
For more details, refer to Converting a Connection to Custom SQL.Set the capability customizations in the Tableau Datasource Customization (TDC) file to prevent Tableau from attempting to read metadata describing primary and foreign key constraints.
For more details, refer to Tableau Capability Customizations Reference.001497191

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.