---
title: Using the Tableau Analytics Extension with deployments
description: Use the Tableau analytics extension to integrate DataRobot predictions into your Tableau project.
section_name: MLOps
maturity: public-preview
---

# Using the Tableau Analytics Extension with deployments {: #using-the-tableau-analytics-extension-with-deployments }

!!! info "Availability information"
    The Tableau analytics extension is off by default. Contact your DataRobot representative or administrator for information on enabling the feature.

    <b>Feature flag:</b> Enable Tableau Analytics Extension

Now available as a public preview feature, you can use the Tableau analytics extension to integrate DataRobot predictions into your Tableau project. The extension supports the Tableau Analytics API, which allows its users to create endpoints that can send data to and receive data from Tableau. Using the extension, you can visualize prediction information and update it with information based on prediction responses from DataRobot.

###  Configure the Tableau Analytics Extension {: #configure-the-tableau-analytics-extension }

To use the extension, you must correctly configure both Tableau and the integration code snippet itself.

First, you must successfully connect to the Tableau Analytics Extension. To do so, from Tableau, navigate to **Settings** > **Manage Analytics Extension Connection**.

![](images/tab-ext-1.png)

Complete the following fields and enable SSL to connect Tableau to your DataRobot instance:

![](images/tab-ext-2.png)

 Field | Description 
-------|------------
Server | Enter the address for the DataRobot server from which Tableau receives prediction responses. The address should match the instance you are using: `yourinstance.com/tableauintegrations`.
Port   | Enter the port number for the DataRobot instance's server. The value should always be `443`.
Enable SSL | Select the checkbox to enable SSL and establish a secure connection from DataRobot to Tableau. SSL is required for all integrations.
Username and password | Select the checkbox to sign in with a username and password. Use your DataRobot username and provide your [API Key](api-key-mgmt) as the password.


When you have completed the fields, select **Test Connection** to verify that Tableau can successfully connect to DataRobot. If the connection is successful, click **OK**. DataRobot is now connected to the Tableau Analytics Extension.

After establishing the connection, access the deployment from which you want to send prediction responses to Tableau. Navigate to **Predictions > Integrations > Tableau Analytics Extensions API**.

![](images/tab-ext-3.png)

Copy the snippet displayed on the page by selecting **Copy script to clipboard**.

![](images/tab-ext-4.png)

Return to Tableau and from the **Data** dropdown menu, select **Create Calculated Field**.

![](images/tab-ext-5.png)

Paste the snippet into the empty field, click **Apply**, then **OK**. This creates a calculated field that acts like a spreadsheet function.

![](images/tab-ext-6.png)

You can now drag and drop the newly created table (named "Calculation1" by default) anywhere a normal field would go in Tableau to generate predictions for a data source using the deployed model in DataRobot.

###  Edit the code snippet with column mapping {: #edit-the-code-snippet-with-column-mapping }

It's possible certain columns in the dataset return errors after pasting the snippet in the calculated field. You can edit these columns so that DataRobot and Tableau recognize them as the same field. From the **Tableau Analytics Extension** page in DataRobot, select **Add mapping**.

![](images/tab-ext-7.png)

In the left column, select the checkbox for any features you want to map, then click the orange right arrow to set them as input features. When you have selected all of the features you want to map, click **Next**.

![](images/tab-ext-8.png)

Enter the name of each column as it is displayed in Tableau. You can add any additional input features by selecting **Add column**. When you have mapped all of the input features, click **Add mappings**.

![](images/tab-ext-10.png)

Once added, the snippet automatically updates to include the mappings. Copy it to your clipboard and add it to Tableau as a new calculated field to make predictions.

After making edits, you can modify any columns from the **Tableau Analytics Extension** page or add columns without returning to the modal by selecting **Add column**.

![](images/tab-ext-9.png)