---
schema_version: "1"
id: 85604d517ea886d900a9393cf33737e5561888596a0797da52d70139b02da6ca
title: 將 Einstein Discovery 預測整合到 Tableau 中
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/pro/desktop/einstein_discovery_predictions.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/zh-tw/einstein_discovery_predictions.htm
source_site: help.tableau.com
content_type: documentation
content_hash: abe2829ee16e04719f30642c001bd2c745df4adc46d87e1d408108a40c401f40
description: Integrate Einstein Discovery predictions into Tableau views via calculated fields and extensions.
---
[跳至主要內容](#main-content)

# 將 Einstein Discovery 預測整合到 Tableau 中

在 Tableau 檢視和儀表板中顯示來自 Einstein Discovery 的動態預測。在 Tableau 2021.1 及更高版本中，可以透過以下方式存取 Einstein Discovery 預測的功能：

- 連線到 [Einstein Discovery 分析擴充功能](#Analytic)，以與 Tableau 中 Einstein Discovery 支援的預測模型進行互動。
- 將 [Einstein Discovery 中產生的表計算指令碼](#Access) 貼到 Tableau 計算欄位中，以將預測內嵌到 Tableau 工作簿中。
- 使用 [Einstein Discovery 儀表板擴充功能](#Einstein)，根據使用者的 Tableau 資料為使用者提供動態的按需預測。
- 在Tableau Prep中，[在流程中新增 Einstein Discovery 預測步驟](https://help.tableau.com/current/prep/zh-tw/prep_predictions.htm)，利用預測以及 (可選) 改善主要因素來豐富流程輸出。

**附註**：有關 Tableau 中 Einstein Discovery 的簡介，請參閱 [Tableau 中的 Einstein Discovery](https://www.tableau.com/zh-tw/products/add-ons/einstein-discovery) 頁面和[tableau.com](https://www.tableau.com/zh-tw/) 上面的 [示範](https://www.tableau.com/zh-tw/learn/webinars/einstein-discovery-tableau-demo)。

## 何謂 Einstein Discovery？

Einstein Discovery 是一種分析工具，其使用機器學習模型和全面的統計分析透過人工智慧的功能來增強資料分析。Einstein Discovery 可迅速篩選出數百萬列資料，以找到重要的相關性、預測結果並提出改善這些預測結果的方法。

有關 Einstein Discovery 的更多資訊，請參閱 [Trailhead](https://trailhead.salesforce.com/en/home) 中的[使用 Einstein Discovery 取得見解](https://trailhead.salesforce.com/en/content/learn/trails/wave_analytics_einstein_discovery)學習路徑。

**附註**：Tableau 中的 Einstein Discovery 由 [salesforce.com](https://www.salesforce.com/tw/) 提供支援。有關適用條款，請參閱與 [salesforce.com](https://www.salesforce.com/tw/) 的合約。

## 存取要求

要在 Tableau 中設定和使用 Einstein Discovery 預測，您和將要在 Tableau 工作簿中檢視預測的任何人都需要 Salesforce 和 Tableau 中的某些授權、存取權限和權限。

#### Salesforce 要求

Tableau 版本 21.1 或更高版本支援 Tableau 與 Einstein Discovery 進行整合。整合要求：

<table class="table--plain"><colgroup><col style="width: 30%;"><col style="width: 70%;"></colgroup><thead><tr><th class="table--plain" style="text-align: left;">要求</th><th class="table--plain" style="text-align: left;">說明</th></tr></thead><tbody><tr><td class="table--plain"><p><b>Salesforce 授權</b></p></td><td class="table--plain"><p>以下授權之一：</p><ul><li>Tableau 中的 Einstein Discovery 授權</li><li>Tableau CRM Plus 授權</li><li>Einstein Predictions 授權</li></ul><p>這些授權須額外付費才可使用。</p></td></tr><tr><td class="table--plain"><p><b>Salesforce 使用者帳戶</b></p></td><td class="table--plain"><p>設定為存取 Einstein Discovery 的帳戶。</p><p>若使用 Tableau 中的 Einstein Discovery 授權，使用者帳戶必須指派有<b>透過 Connect API 檢視 Einstein Discovery 建議</b>系統權限。</p><p>若使用 Tableau CRM Plus 授權或 Einstein Predictions 授權：</p><ul><li>要使用已部署的 Einstein Discovery 預測取得預測，帳戶必須指派有<b>檢視 Einstein Discovery 建議</b>系統權限。</li><li>要在 Einstein Discovery 中建置、部署和管理預測，帳戶必須指派有<b>管理 Einstein Discovery 權限</b>。</li></ul><p>要設定使用者帳戶，請參閱 Salesforce 說明中的<a href="https://help.salesforce.com/articleView?id=sf.bi_edd_help_setup.htm&amp;type=5" target="_blank" title="Salesforce 說明中的「設定 Einstein Discovery」說明主題連結。" alt="Link to Set Up Einstein Discovery help topic in Salesforce help.">設定 Einstein Discovery</a>。</p></td></tr><tr><td class="table--plain"><p><b>管理員設定</b></p></td><td class="table--plain"><p>Salesforce 管理員需要：</p><ul><li><b>分析擴充</b>: 設定 Salesforce 為 Tableau Server <a href="https://help.salesforce.com/articleView?id=sf.connected_app_create.htm&amp;type=5" target="_blank">建立連線的應用程式</a>（<a href="https://help.salesforce.com/articleView?id=sf.connected_app_create_basics.htm&amp;type=5" target="_blank">基本</a>）。要求僅限 Tableau Server。</li><li><b>儀表板擴充</b>: 將 Tableau Server 或 Tableau Cloud 網站網域新增到 Salesforce 跨原始來源資源共用 (CORS) 允許清單。</li></ul></td></tr></tbody></table>

#### Tableau 要求  
  

<table class="table--plain"><colgroup><col style="width: 30%;"><col style="width: 70%;"></colgroup><thead><tr><th class="table--plain" style="text-align: left;">要求</th><th class="table--plain" style="text-align: left;">說明</th></tr></thead><tbody><tr><td class="table--plain"><p><b>Tableau 授權和權限</b></p></td><td class="table--plain"><p>需要設定 Einstein Discovery 儀表板擴充功能的作者將需要 Creator 或 Explorer 授權和權限，以允許他們編輯和儲存工作簿。</p><p>Creator、Explorer 和檢視者將需要登入 Salesforce 組織帳戶，以存取 Tableau 中 Einstein Discovery 儀表板擴充功能中的預測。</p></td></tr><tr><td class="table--plain"><p><b>Tableau 使用者帳戶</b></p></td><td class="table--plain"><p>在 Tableau Cloud 和 Tableau Server 中，使用者可以將 Salesforce 使用者帳戶認證及其 Tableau 使用者帳戶一起儲存。</p></td></tr><tr><td class="table--plain"><p><b>管理員設定</b></p></td><td class="table--plain"><p>Tableau Server 管理員將需要為 OAuth 設定 Tableau Server（啟用對 Tableau 中預測的存取權）。有關詳情，請參閱 Tableau Server 說明中的<a href="https://help.tableau.com/current/server/zh-tw/config_einstein_extensions.htm" target="_blank">設定 Einstein Discovery 整合</a>。</p><p>為了讓使用者看到已發佈表計算中的預測，Tableau Server 管理員需要為網站啟用 分析擴充功能。有關詳情，請參閱 Tableau Server 說明中的<a href="https://help.tableau.com/current/server/zh-tw/config_r_tabpy.htm" target="_blank">設定與分析擴充的連線</a>。</p><p>有關 Tableau Server 組態的詳細資訊，請參閱<a href="https://help.tableau.com/current/server/zh-tw/config_einstein_extensions.htm" target="_blank">設定 Einstein Discovery 整合（Tableau Server）</a> 。</p><p>有關 Tableau Cloud 設定的詳細資訊，請參閱<a href="https://help.tableau.com/current/online/zh-tw/config_einstein_extensions.htm" target="_blank">設定 Einstein Discovery 整合（Tableau Cloud）</a> 。</p></td></tr></tbody></table>

## Analytics 擴充功能支援 Einstein Discovery 預測

Tableau 中的 Einstein Discovery 可為整個組織中的每位 Tableau 使用者提供 Einstein Discovery 中可靠、直觀的預測和改進。工作簿作者可以建置和共用視覺效果和儀表板，這些視覺效果和儀表板可動態整合來自 Salesforce [Einstein Discovery](https://help.salesforce.com/articleView?id=sf.bi_edd_about.htm&type=5) 中部署的預測模型的預測。

作者可設定用於工作簿的 Einstein Discovery Analytics 擴充功能，然後使用計算欄位將 Einstein Discovery 支援的預測直接內嵌到 Tableau 中。

![對話方塊，其中包含連線到 Einstein Discovery 的訊息。](/tableau/next/zh-tw/pro/desktop/zh-tw/Img/external_analytics_05.png)

### 在 Tableau 計算欄位中存取 Einstein Discovery 預測

透過將 Tableau 連線到 Einstein Discovery Analytics 擴充功能，可以將預測直接內嵌到計算欄位中。在 Salesforce 中，使用模型管理器自動產生 Tableau 表計算指令碼，然後將該指令碼貼上到計算欄位中，以供 Tableau 工作簿使用。表計算指令碼可透過呼叫預測 ID 並傳遞模型所需的資料來存取在 Salesforce 中部署的預測模型。

![程式碼片段，顯示定義按時交付預測模型的指令碼。](/tableau/next/zh-tw/pro/desktop/zh-tw/Img/EDpredictions_calcfieldscript.png)

可以在 Tableau Desktop、Tableau Cloud 或 Tableau Server 中建立增強預測的視覺效果，或將其發佈到 Web。

有關詳情，請參閱[透過分析擴充功能傳遞運算式](https://help.tableau.com/v0.0/pro/desktop/zh-tw/r_connection_manage.htm)中的 [Einstein Discovery](https://help.tableau.com/v0.0/pro/desktop/zh-tw/r_connection_manage.htm#Einstein2)。

## Tableau 中的 Einstein Discovery 儀表板擴充功能

在 Tableau 儀表板中整合來自 Einstein Discovery 的按需可解譯預測。作者可建立工作表和儀表板，然後將 Einstein Discovery 儀表板擴充功能設定為使用選定的 Einstein Discovery 預測定義，該定義會使用儀表板中可用的來源資料來衍生預測。儀表板檢視者和使用者可以按一下 Tableau 視覺效果中的不同標記來瀏覽預測。

![具有 Einstein Discovery 預測的儀表板範例](/tableau/next/zh-tw/pro/desktop/zh-tw/Img/EDpredictions_dashext_intro.gif)

有關詳情，請參閱[使用 Einstein Discovery 儀表板擴充功能探索 Tableau 中的預測](https://help.tableau.com/v0.0/pro/desktop/zh-tw/einstein_discovery_dashboard_extension.htm)。

## 此區段的其他文章