This topic describes how to use Tableau to connect to a Hologres instance and analyze
data in a visualized manner.
Background information
Tableau is a secure and flexible end-to-end data analytics platform. It provides a
complete set of features from connection setup to collaboration. Hologres is compatible
with PostgreSQL. You can connect Tableau to a Hologres instance for data analysis
in a visualized manner.
Use Tableau Desktop to connect to Hologres
- Download and install Tableau.
- Configure a Tableau Datasource Customization (TDC) file.
For better performance and experience, configure a TDC file to customize and optimize
the connection to the Hologres data source. To configure a TDC file, perform the following
steps:
- Download the TDC file.
- Copy the TDC file to the related directories of Tableau Desktop and Tableau Server.
- For Tableau Desktop, copy the TDC file to the Datasources directory of Tableau Desktop.
The default directory is
Documents\My Tableau Repository\Datasources
.
- For Tableau Server, copy the TDC file to the following directory on each node of Tableau
Server:
- Windows:
ProgramData\Tableau\Tableau Server\data\tabsvc\vizqlserver\Datasources
.
- Linux:
/var/opt/tableau/tableau_server/data/tabsvc/vizqlserver/Datasources/
.
- Restart Tableau Desktop and Tableau Server.
- Connect to a Hologres instance.
- Start Tableau Desktop.
- In the left-side navigation pane, choose . In the PostgreSQL dialog box, set the parameters for connecting to a Hologres instance.
The following table describes the parameters.
Parameter |
Description |
Server |
The public endpoint of the Hologres instance.
You can obtain the public endpoint from the Network Information section of the instance details page in the Hologres console.
|
Port Number |
The port number of the Hologres instance.
You can obtain the port number from the Network Information section of the instance details page in the Hologres console.
|
Database |
The name of the Hologres database to which you want to connect. |
Authentication |
The authentication method. Select User Name and Password.
|
Username |
The AccessKey ID of the Alibaba Cloud account used to access the Hologres instance.
You can obtain the AccessKey ID from the Security Management page.
|
Password |
The AccessKey secret of the Alibaba Cloud account used to access the Hologres instance.
You can obtain the AccessKey secret from the Security Management page.
|
Require SSL |
Specifies whether an SSL certificate is required to connect to the Hologres instance.
Do not select this check box.
|
- Click Sign In.
- Analyze data in a visualized manner by using Tableau Desktop.
After you use Tableau Desktop to connect to your Hologres instance, you can analyze
data of existing tables in the instance in a visualized manner. For more information,
see
Get started with Tableau.
Publish workbooks of Tableau Desktop to Tableau Server
To publish a workbook of Tableau Desktop to Tableau Server for analysis and management,
perform the following steps:
- Download and install Tableau Server.
Download a Tableau Server client from the
Tableau official website based on your business requirements and install the client.
- Use Tableau Desktop to connect to Tableau Server.
- Start Tableau Desktop and choose in the top navigation bar.
- In the dialog box that appears, enter the URL of Tableau Server and click Connect.

- On the logon page, enter the username and password used to connect to Tableau Server
and click Sign In.
- Publish a workbook to Tableau Server.
- Log on to Tableau Server and choose in the top navigation bar.
- In the Publish Workbook to Tableau Server dialog box, set the parameters described in the following table.

Parameter |
Description |
Project |
The name of the project for which you want to publish a workbook. |
Name |
The name of the workbook that you want to publish. |
Tags |
Tags that help you find the related workbooks when you browse the server. Separate
tags with commas (,) or spaces.
|
Permissions |
Use the default settings. |
Data Sources |
Tableau Server provides the following two authentication methods for data sources:
- Prompt user
- Embedded password
If you select Embedded password from the drop-down list, Tableau embeds the information
about the connection between the workbook and the data source into the workbook and
allows all users who are granted the required permissions to view the workbook. When
you use Tableau to connect to a Hologres instance, the AccessKey ID and AccessKey
secret are required. We recommend that you use the Embedded password method.
|
- After you set the parameters, click Publish. Then, you can view the published workbook in Tableau Server.
FAQ
- Problem description: An exception occurs in the time zone of TIMESTAMPTZ data in the
query result.
- Cause: By default, the time zone of TIMESTAMPTZ data is PRC in Hologres and UTC in
Tableau. Therefore, TIMESTAMPTZ data may be displayed as different time values due
to the inconsistency in time zone.
- Solution: Configure initial SQL statements in Tableau.
Note This solution takes effect only on data sources that you specified when you use Tableau
to connect to Hologres.
Initial SQL statements can be configured in the following scenarios:
- Configure time dimensions.
We recommend that you do not perform format conversion more than once in Tableau when
you use time dimensions. For example, you want to set the format of the
l_shipdate column in the following figure to the Date/Time format. To do this, set the column
to the TIMESTAMP or TIMESTAMPTZ format when you create the corresponding table in
Hologres. This helps you prevent unnecessary format conversions.
