All Products
Search
Document Center

Hologres:Tableau

Last Updated:Feb 04, 2026

This topic describes how to connect Tableau to Hologres and perform visual analytics on your data.

Background information

Tableau is a secure and flexible end-to-end data analytics platform that provides a full range of features, from connection to collaboration. Because Hologres is compatible with PostgreSQL, you can directly connect Tableau to Hologres for visual analytics.

Connect Tableau Desktop to Hologres

  1. Download and install Tableau.

    Go to the official Tableau website, download the required Tableau client, and follow the instructions to install it. This topic uses Tableau Desktop as an example.

  2. Configure the TDC file.

    For better performance and user experience, configure a Tableau Datasource Customization (TDC) file to customize and optimize the connection to the Hologres data source. Perform the following steps:

    1. Download the Tableau Datasource Customization (TDC) file.

    2. Copy the TDC file to the installation directory.

      • For Tableau Desktop, copy the TDC file to the installation directory. The default directory is Documents\My Tableau Repository\Datasources.

      • For Tableau Server, copy the TDC file to the following folder on each server node:

        • Windows: ProgramData\Tableau\Tableau Server\data\tabsvc\vizqlserver\Datasources.

        • Linux: /var/opt/tableau/tableau_server/data/tabsvc/vizqlserver/Datasources/.

    3. Restart Tableau Desktop and Tableau Server.

    For more information about TDC files, see Tableau Help.

  3. Connect to Hologres.

    1. After the client is installed, open it.

    2. In the Connect > To a Server section of the navigation pane on the left, select PostgreSQL and configure the connection to Hologres.

      The following table describes the parameters.

      Parameter

      Description

      Server

      The public endpoint of the Hologres instance.

      Go to the instance details page in the Hologres console. In the Network Information section, obtain the public endpoint.

      Port

      The port of the Hologres instance.

      Go to the instance details page in the Hologres console. In the Network Information section, obtain the port.

      Database

      The name of the database that you created in Hologres.

      Authentication

      Select Username and Password.

      Username

      The AccessKey ID of your Alibaba Cloud account.

      Click AccessKey Management to obtain the AccessKey ID.

      Password

      The AccessKey secret of your Alibaba Cloud account.

      Click AccessKey Management to obtain the AccessKey secret.

      Require SSL

      Do not select this option.

    3. (Recommended) Click Initial SQL and set the application_name parameter using the following command.

      SET application_name='tableau'

      After you set the application_name parameter, you can quickly identify SQL statements sent from Tableau in query logs and running SQL statements.

    4. Click Logon.

  4. Visualize data in Tableau.

    After you connect Tableau to Hologres, you can perform visual analytics on your table data. For more information, see the Tableau Tutorials.

Publish to Tableau Server

If you want to publish reports from Tableau Desktop to Tableau Server for analysis and management, perform the following steps:

  1. Download and install Tableau Server.

    Go to the official Tableau website, download the required Tableau Server client, and follow the instructions to install it.

  2. Access Tableau Server from Tableau Desktop.

    1. Open the Tableau Desktop client. From the top menu, choose Server > Logon.

    2. In the dialog box, enter the address of your Tableau Server and click Connect.Sign In

    3. On the logon page, enter the username and password for Tableau Server and click Logon.

  3. Publish the workbook to Tableau Server.

    1. After you log on to Tableau Server, from the top menu, choose Server > Publish Workbook.

    2. In the Publish Workbook dialog box, configure the following parameters.

      发布工作薄

      Parameter

      Description

      Project

      Select the destination project.

      Name

      Enter a name for the workbook.

      Tags

      Tags help users find related workbooks when they browse the server. Separate tags with a comma or a space.

      Permissions

      Accept the default project settings.

      Data Sources

      Tableau Server supports two types of data source authentication:

      • Prompt user

      • Embed password

      If you select Embed password, Tableau embeds the data source connection information in the report. This allows any user who can view the workbook to see the data. Because connecting to Hologres requires an AccessKey ID and an AccessKey secret, which can be cumbersome, we recommend that you use the embedded password mode.

    3. After you configure the parameters, click Publish. You can then view the published report in Tableau Server.

FAQ

  • The time zone for data of the TIMESTAMPTZ type is incorrect in query results.

    • Cause: The default time zone in Hologres is PRC, and the default time zone in Tableau is UTC. This inconsistency causes the time to be displayed incorrectly for data of the TIMESTAMPTZ type.

    • Solution: Set an initial SQL statement in Tableau to resolve the time zone inconsistency.

      Note

      This configuration takes effect only for the specified data source.

      You can set the initial SQL statement in the following two scenarios:

      • Connecting to Hologres for the first time.

        If this is your first time connecting to Hologres, follow these steps.

        When you create the data connection, enter the following SQL statement in the Initial SQL field.

        SET TIME ZONE "PRC";

        初始化SQL

      • Now that you have connected Tableau to Hologres, you can perform the following steps.

        1. Click Initial SQL.初始化SQL

        2. In the Initial SQL dialog box, enter the following SQL command.

          SET TIME ZONE "PRC";
        3. Click OK to save the initial SQL settings.

        4. In the upper-left corner of the page, click the 刷新 icon to apply the settings.

  • Settings for time-type dimensions.

    When you use time-type dimensions in Tableau, we recommend that you avoid secondary transformations. For example, if you want to use l_shipdate with a date and time format, set the column to the TIMESTAMP or TIMESTAMPTZ format when you create the table in Hologres. This avoids unnecessary field type conversions.时间类型维度设置