---
schema_version: "1"
id: 619835b5c2c7dd35e8267062b12f660d4ac21fe767abd5fe843d6c148bca57d2
title: Integrate Einstein Discovery Predictions in Tableau
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/pro/desktop/einstein_discovery_predictions.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/en-gb/einstein_discovery_predictions.htm
source_site: help.tableau.com
content_type: documentation
content_hash: c51a26ba23743dde1ec5838da8047d901136f32d21d0731b01d5996f0f19f5e6
description: Integrate Einstein Discovery predictions into Tableau views via calculated fields and extensions.
---
[Skip to main content](#main-content)

# Integrate Einstein Discovery Predictions in Tableau

Reveal dynamic predictions from Einstein Discovery in your Tableau views and dashboards. In Tableau 2021.1 and later, you can access the power of Einstein Discovery predictions in these ways:

- Connect to the [Einstein Discovery analytics extension](#Analytic) to interact with Einstein Discovery-powered predictive models from Tableau.
- Embed predictions in a Tableau workbook by pasting generated [table calculation scripts from Einstein Discovery](#Access) into calculated fields in Tableau.
- Give users dynamic, on-demand predictions based on their Tableau data using the [Einstein Discovery dashboard extension](#Einstein).
- In Tableau Prep, [add Einstein Discovery prediction steps to flows](https://help.tableau.com/current/prep/en-gb/prep_predictions.htm) to enrich your flow output with predictions and, optionally, improvements and top factors.

**Note**: For an introduction to Einstein Discovery in Tableau, see the [Einstein Discovery in Tableau](https://www.tableau.com/en-gb/products/add-ons/einstein-discovery) page and [demo](https://www.tableau.com/en-gb/learn/webinars/einstein-discovery-tableau-demo) on [tableau.com](https://www.tableau.com/en-gb/).

## What is Einstein Discovery?

Einstein Discovery is an analytics tool that augments your data analysis with the power of artificial intelligence using machine learning models and comprehensive statistical analysis. Einstein Discovery quickly sifts through millions of rows of data to find important correlations, predict outcomes and suggest ways to improve those predicted outcomes.

For more information about Einstein Discovery, see [Gain Insight with Einstein Discovery](https://trailhead.salesforce.com/en/content/learn/trails/wave_analytics_einstein_discovery) trail in [Trailhead](https://trailhead.salesforce.com/en/home).

**Note**: Einstein Discovery in Tableau is powered by [salesforce.com](https://www.salesforce.com/). Consult your agreement with [salesforce.com](https://www.salesforce.com/) for applicable terms.

## Requirements for access

To configure and use Einstein Discovery predictions in Tableau, you and anyone who will be viewing predictions in a Tableau workbook will need certain licences, access and permissions in Salesforce and Tableau.

#### Salesforce Requirements

Tableau integration with Einstein Discovery is supported in Tableau version 21.1 or later. Integration requires:

<table class="table--plain"><colgroup><col style="width: 30%;"><col style="width: 70%;"></colgroup><thead><tr><th class="table--plain" style="text-align: left;">requirement</th><th class="table--plain" style="text-align: left;">description</th></tr></thead><tbody><tr><td class="table--plain"><p><b>Salesforce licence</b></p></td><td class="table--plain"><p>One of the following licences:</p><ul><li>Einstein Discovery in Tableau licence</li><li>Tableau CRM Plus licence</li><li>Einstein Predictions licence</li></ul><p>These licences are available for an extra cost.</p></td></tr><tr><td class="table--plain"><p><b>Salesforce user account</b></p></td><td class="table--plain"><p>Account that is configured to access Einstein Discovery.</p><p>If you use the Einstein Discovery in Tableau licence, your user account must have the <b>View Einstein Discovery Recommendations Via Connect API</b> system permission assigned to it.</p><p>If you use either the Tableau CRM Plus licence or Einstein Predictions licence:</p><ul><li>To get predictions using already deployed Einstein Discovery predictions, the account must have the <b>View Einstein Discovery Recommendations</b> system permission assigned to it.</li><li>To build, deploy and manage predictions in Einstein Discovery, the account must have the <b>Manage Einstein Discovery permission</b> assigned to it.</li></ul><p>To configure user accounts, see <a href="https://help.salesforce.com/articleView?id=sf.bi_edd_help_setup.htm&amp;type=5" target="_blank" title="Link to Set Up Einstein Discovery help topic in Salesforce help." alt="Link to Set Up Einstein Discovery help topic in Salesforce help.">Set Up Einstein Discovery</a> in Salesforce help.</p></td></tr><tr><td class="table--plain"><p><b>Administrator settings</b></p></td><td class="table--plain"><p>Salesforce administrators will need to:</p><ul><li><b>Analytics Extension</b>: Configure Salesforce to <a href="https://help.salesforce.com/articleView?id=sf.connected_app_create.htm&amp;type=5" target="_blank">create a connected app</a> for Tableau Server (<a href="https://help.salesforce.com/articleView?id=sf.connected_app_create_basics.htm&amp;type=5" target="_blank">basic</a>). Required for Tableau Server only.</li><li><b>Dashboard Extension</b>: Add the Tableau Server or Tableau Cloud website domain to the Salesforce Cross-Origin Resource Sharing (CORS) allowlist.</li></ul></td></tr></tbody></table>

#### Tableau Requirements  
  

<table class="table--plain"><colgroup><col style="width: 30%;"><col style="width: 70%;"></colgroup><thead><tr><th class="table--plain" style="text-align: left;">requirement</th><th class="table--plain" style="text-align: left;">description</th></tr></thead><tbody><tr><td class="table--plain"><p><b>Tableau licence and permissions</b></p></td><td class="table--plain"><p>Authors who need to configure the Einstein Discovery dashboard extension will need a Creator or Explorer licence and permissions that allow them to edit and save workbooks.</p><p>Creators, Explorers and Viewers will need to be signed in to the Salesforce org account to access predictions in the Einstein Discovery dashboard extension in Tableau.</p></td></tr><tr><td class="table--plain"><p><b>Tableau user account</b></p></td><td class="table--plain"><p>In Tableau Cloud and Tableau Server, users can save Salesforce user account credentials along with their Tableau user account.</p></td></tr><tr><td class="table--plain"><p><b>Administrator settings</b></p></td><td class="table--plain"><p>Tableau Server administrators will need to configure Tableau Server for OAuth (enables access to predictions from Tableau). For more information, see <a href="https://help.tableau.com/current/server/en-gb/config_einstein_extensions.htm" target="_blank">Configure Einstein Discovery Integration</a> in Tableau Server help.</p><p>To let users see predictions in published table calculations, Tableau Server administrators need to enable analytics extensions for the site. For more information, see <a href="https://help.tableau.com/current/server/en-gb/config_r_tabpy.htm" target="_blank">Configure Connection with Analytics Extensions</a> in Tableau Server help.</p><p>For more information on Tableau Server configuration, see <a href="https://help.tableau.com/current/server/en-gb/config_einstein_extensions.htm" target="_blank">Configure Einstein Discovery Integration (Tableau Server)</a>.</p><p>For more information on Tableau Cloud configuration, see <a href="https://help.tableau.com/current/online/en-gb/config_einstein_extensions.htm" target="_blank">Configure Einstein Discovery Integration (Tableau Cloud)</a>.</p></td></tr></tbody></table>

## Analytics extension support for Einstein Discovery predictions

Einstein Discovery in Tableau brings trusted, intuitive predictions and improvements from Einstein Discovery to every Tableau user across your organisation. Workbook authors can build and share visualisations and dashboards that dynamically integrate predictions from predictive models deployed in Salesforce [Einstein Discovery](https://help.salesforce.com/articleView?id=sf.bi_edd_about.htm&type=5).

Authors set up the Einstein Discovery analytics extension for use in a workbook, and then can embed Einstein Discovery-powered predictions directly in Tableau using calculated fields.

![A dialog box with a message to connect to Einstein Discovery.](/tableau/next/en-gb/pro/desktop/en-gb/Img/external_analytics_05.png)

### Access Einstein Discovery predictions in Tableau calculated fields

With Tableau connected to the Einstein Discovery analytics extension, you can embed predictions directly in calculated fields. In Salesforce, use Model Manager to auto-generate a Tableau table calculation script, and then paste that script into a calculated field for use in a Tableau workbook. The table calculation script accesses predictive models deployed in Salesforce by calling the prediction ID and passing the data required for the model.

![A code snippet that displays a script that defines a prediction model for on-time delivery.](/tableau/next/en-gb/pro/desktop/en-gb/Img/EDpredictions_calcfieldscript.png)

You can create prediction-enhanced visualisations in Tableau Desktop, Tableau Cloud or Tableau Server, or publish them to the web.

For more details, see [Einstein Discovery](https://help.tableau.com/v0.0/pro/desktop/en-gb/r_connection_manage.htm#Einstein2) in [Pass Expressions with Analytics Extensions](https://help.tableau.com/v0.0/pro/desktop/en-gb/r_connection_manage.htm).

## Einstein Discovery dashboard extension in Tableau

Integrate on-demand, interpretable predictions from Einstein Discovery in Tableau dashboards. Authors create worksheets and the dashboard, and then configure the Einstein Discovery dashboard extension to use a selected Einstein Discovery prediction definition, which uses source data available in the dashboard to derive predictions. Dashboard viewers and users can click different marks in the Tableau visualisation to explore predictions.

![An example of a dashboard with predictions from Einstein Discovery](/tableau/next/en-gb/pro/desktop/en-gb/Img/EDpredictions_dashext_intro.gif)

For more information, see [Explore Predictions in Tableau with the Einstein Discovery Dashboard Extension](https://help.tableau.com/v0.0/pro/desktop/en-gb/einstein_discovery_dashboard_extension.htm).

## Other articles in this section