---
schema_version: "1"
id: 3059973863d7e837913bfe2458272b8118e91b3cf89c08b583c4b22f1fb2218c
title: Table Extensions
collection: tableau
version: current
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/current/en-gb/server-linux/ts_table_extensions.md
canonical_url: https://help.tableau.com/current/server-linux/en-gb/ts_table_extensions.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 3dae8ff6cdccc3e57c75f058471774e22784aa3338b902256a2f068987d9d21e
description: Create table extensions with analytics extension scripts on Tableau Server.
---
[Skip to main content](#main-content)

# Table Extensions

Table Extensions allow you to create new data tables with an analytics extensions script. You can write a custom TabPy or Rserve script and optionally add one or more input tables. Table extensions are supported by Tableau Cloud, Tableau Server and Tableau Desktop. This document focuses on Tableau Server.

**Note:** The data refreshes every time you open up a workbook or refresh a data source.

### Benefits

Table Extensions have the following benefits for both new and experienced users.

- Faster data processing
- Low code editor
- Integrates with [Ask Data](https://help.tableau.com/current/server/en-gb/ask_data.htm) and [Explain Data](https://help.tableau.com/current/server/en-gb/explain_data_basics.htm)
- Integrates with TabPy and Rserve
- Results can be used to construct dashboards or visualisations.

## Prerequisites

Before you can use table extensions, you must complete the following list.

- Configure an analytics extension
    - For steps to configure analytics extension connections, see [Configure Connections with Analytics Extensions](https://help.tableau.com/current/server/en-gb/config_r_tabpy.htm).
- Publish your workbook.

## Create a Table Extension

To create a new table extension, complete the steps below.

1. Open a published workbook.

**Note:** The workbook must be published before you can add a table extension.

3. Under **Sheets**, choose **New Table Extension**.
    
    ![connections menu](/tableau/current/en-gb/server-linux/en-gb/Img/new_table_extension.png)
4. (Optional) Drag sheets into the table extension pane.
5. Under **Choose a Connection**, select an analytics extension.
    
    ![analytics extensions drop-down menu](/tableau/current/en-gb/server-linux/en-gb/Img/choose_analytics_extension.png)
6. In **Script**, enter your script.
7. Select **Apply**.
8. Choose **Update Now** and the results will appear in the **Output Table** tab.
    
    ![output results table](/tableau/current/en-gb/server-linux/en-gb/Img/table_extension_output_table.png)
9. In the **Name** field, enter a unique name for your new table extension.
10. Go to the sheet tab and publish the workbook to save it.

**Note:** If you edit the input table, you have to press **Apply** again before you can see or use the updated output table data.

> [!TIP]
> 
> **Troubleshooting tip**: If your table extension is hitting an error, try using the circular **Refresh** **Data** **Source** button, located next to the **Save** button.

### **Table Extensions vs Analytics Extensions**

Tableau has a few different features with "extension" in the name. While some of these products aren't related, table extensions and analytics extensions are. The table extensions feature relies on a connection with analytics extensions to work. Let's break down each feature.

#### Table Extensions

The table extensions feature lets you create workbook calculations that send data and a processing script to your analytics extension. The returned results are displayed as a table on the Data Source tab and as measures and dimensions in the workbook.

#### Analytics Extensions

The analytics extensions feature allows you to extend Tableau dynamic calculations with programming languages like Python, external tools and external platforms. After you create a connection to an analytics extension, you can communicate with your external server through calculated fields. For more information, see [Configure Connections with Analytics Extensions](https://help.tableau.com/current/server/en-gb/config_r_tabpy.htm).