> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/integration-guide/readme/bi/integrating-with-tableau.md).

# Integrating with Tableau

Import Tableau view data into Drivetrain with a personal access token. Covers enabling and creating the token, finding your instance URL and site, and submitting it.

Drivetrain imports the data behind Tableau views (sheets) into Drivetrain. It signs in to the Tableau REST API with a personal access token (PAT) and downloads each view's data as CSV. Nothing is written back to Tableau, and Drivetrain doesn't send its own data to Tableau.

Tableau is a premium integration: you create the token and submit the details in Drivetrain, and Drivetrain's team completes the setup.

## Before you start

* **In Drivetrain:** an admin submits the connection.
* **Tableau version:** Tableau Cloud, or Tableau Server 2023.3 or later. Drivetrain uses REST API 3.20, which older Tableau Server versions don't support.
* **Network:** your Tableau address must use `https://` and be reachable from the internet. A Tableau Server on a private network can't be reached.
* **Tableau user:** the token belongs to a Tableau user. That user needs permission to view the views you want to import. A site admin isn't required. Use a dedicated user if you can: a PAT allows one session at a time, so signing in elsewhere with the same token ends Drivetrain's session.
* **Site admin:** needed once, if personal access tokens aren't enabled on your site yet (Step 1).

## Step 1: Enable personal access tokens (site admin)

On Tableau Cloud, sites created from June 2023 onward have PATs turned off by default.

1. Sign in to Tableau as a site admin and go to the **Settings** page.
2. In the **Personal Access Tokens** section, select **Enable personal access tokens**.
3. Choose who can create tokens: all users, or only members of a group you select (recommended).
4. Under **Set expiration period**, keep **180 days** or enter up to 365 in **Custom days**.
5. Click **Save**.

## Step 2: Create the token

Sign in as the user Drivetrain will use:

1. Click your profile image or initials and select **My Account Settings**.
2. In **Personal Access Tokens**, enter a **Token Name**, for example "Drivetrain", and click **Create Token**.
3. Click **Copy Secret** and store the secret securely. It's shown only once.

A PAT expires after 15 consecutive days without use, and at the end of the site's expiration period even if used. When it expires, create a new token and send it to Drivetrain.

## Step 3: Find your instance URL and site name

Sign in to Tableau and look at the address bar. For example, in `https://10ax.online.tableau.com/#/site/yoursite/home`:

* **Instance URL:** `https://10ax.online.tableau.com` (everything before `/#/`, with no trailing slash). On Tableau Cloud this includes your pod, such as `10ax` or `us-east-1`.
* **Site name:** `yoursite` (the part after `/site/`). On Tableau Server, the default site has no site name.

## Step 4: Submit the details in Drivetrain

1. Go to **Data**, click **+** and select **Tableau**.
2. In **Tableau is a premium integration**, click **Request access**.
3. Enter the **Instance URL**, **Token Name** and **Personal Access Token Secret**.
4. The form has no site field: click **Add field** and add the site name (for example, field name "Site", value `yoursite`). Add another field listing the links of the views you want to import.
5. Click **Submit credentials**. Values are stored encrypted.

The connection shows **Credentials submitted** until Drivetrain's team finishes the setup and activates it.

## What data comes in

* Each view becomes one table, holding the view's summary data (what the view shows, not row-level detail).
* For a dashboard, Tableau returns only the data of the dashboard's first sheet. Pick individual sheets instead.

## Changing or removing access

* **New token:** create one (Step 2) and send the token name and secret to your customer success manager through a secure channel such as a password manager, never email or chat.
* **Stop access:** revoke the token in **My Account Settings** (or a site admin revokes it from the user's page), then ask your customer success manager to remove the connection in Drivetrain.

## Troubleshooting

* **Sign-in fails after working before:** the token expired (15 days unused, or the expiration period ended) or was revoked. Create a new one.
* **Sign-in fails intermittently:** the same token is used somewhere else, which ends Drivetrain's session. Give Drivetrain its own token.
* **A dashboard imports only part of its data:** only the first sheet's data is returned. Import the sheets individually.
* **Questions during setup:** contact your customer success manager.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/integration-guide/readme/bi/integrating-with-tableau.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
