---
schema_version: "1"
id: cc24b3a7c002b0f1d41c2aeee23b04d2d0d337ff6f832812a07b30b1d305bf35
title: 解決預測錯誤
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/pro/desktop/forecast_resolve_errors.md
canonical_url: https://help.tableau.com/current/pro/desktop/zh-tw/forecast_resolve_errors.htm
source_site: help.tableau.com
content_type: documentation
content_hash: ab37ed73d15c1a097e10e19ef0b80c23d948ee974289cf8f2763521b7a5bfee1
description: Resolve forecasting errors caused by too much or too little data.
---
[跳至主要內容](#main-content)

# 解決預測錯誤

如果 Tableau 無法為檢視提供預測，通常可透過變更檢視中的日期值來解決此問題（請參閱[變更日期層級](https://help.tableau.com/current/pro/desktop/zh-tw/dates_levels.htm)）。

當時間系列（月、週等）的彙總層級對於要預測的資料過細或過粗時，可能會產生預測錯誤。這會導致下面所述的 \[資料太多\] 或者 \[資料太少\] 錯誤。當預測嘗試從度量擷取多於度量可提供的資料時，日期彙總可能會觸發 \[太多空值\] 情況。例如，如果銷售資料的基礎粒度是月，但您按週進行彙總時，結果就可能有大量空值。

當檢視的彙總和為預測指定的彙總（使用 \[預測選項\] 對話方塊中的 \[彙總方式\] 欄位）不相容時，會產生其他問題。Tableau 可在預測彙總的詳細資料層級高於檢視彙總的詳細資料層級時建立預測，而在預測彙總的詳細資料層級低於檢視彙總的詳細資料層級時不能建立預測；即使預測彙總的詳細資料層級較高，兩個值也只有在存在 Tableau 可以使用的嚴格階層時才相容（例如，可以將季度均等地劃分為三個月，但不能將月均等地劃分為週）。可透過將 \[彙總方式\] 設定為 \[自動\] 來避免這種情況的發生。

下表列出了可能來自 Tableau 中的無效預測的錯誤，並提供了如何解決它們的建議。

<table style="width: 100%;mc-table-style: url('Resources/TableStyles/Basic-Border.css');" class="TableStyle-Basic-Border" cellspacing="0"><colgroup><col style="width: 30%;" class="TableStyle-Basic-Border-Column-Column1"><col class="TableStyle-Basic-Border-Column-Column1"></colgroup><tbody><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1"><b>錯誤訊息</b></td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><b>解決建議</b></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能從檢視中的日期欄位獲得連續日期。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><p>預測需要可以連續解釋的日期欄位。如果日期欄位不是顯式連續的，則包含的日期層級之一必須是 [年] 。</p><p>如果檢視中沒有日期，或者檢視中的日期不構成完整階層（例如，日期中包含 [年] 和 [日] ，但不包含 [月] ），或者檢視中的日期構成不支援的階層（例如， [年] 、 [週] 、 [日] ），則會返回此錯誤。</p></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">時間系列太短，不能預測。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><p>擴展檢視中的時間系列以包括更多日期值。</p><p>如果去掉可能會誤導預測的不可靠或部分末端週期後資料點數少於四個，則會返回此錯誤。</p></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能為具有空日期值的時間系列計算預測。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">透過篩選日期欄位或使用更粗的日期粒度（例如，透過從月切換為季度），消除檢視中一個或多個日期欄位中的任何空值。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">當檢視中包含多個不同日期欄位時，不能計算預測。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">如果檢視中存在多個日期欄位，則會返回此錯誤。例如，如果 Order Date 和 Ship Date 位於同一檢視中，則不支援預測。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">[預測選項] 對話方塊中的所選 [彙總方式] 值與視覺化不相容。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><p>檢視中的日期必須與 [預測選項] 對話方塊中<span class="uicontrol"> [彙總方式] </span>的值相容。例如，如果將<span class="uicontrol"> [彙總方式] </span>設定為 [週] 而將檢視中的日期設定為 [月] ，就會發生此錯誤。</p><p>變更其中一個日期使這兩個值相容，或者將<span class="uicontrol"> [彙總方式] </span>設定為 [自動] 。</p></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為缺少的值太多。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><p>如果缺少區中超過 40% 的資料，就會返回此錯誤。</p><p>選中 [預測選項] 對話方塊中的<span class="uicontrol"> [用零填充缺少值] </span>不會解決此錯誤。透過移除維度或變更日期層級（例如，從 [週] 變更為 [月] ），將資料彙總到更高的詳細資料層級。</p><p>否則，您必須修改來源資料或使用其他來源的資料。</p></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">沒有要預測的度量。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">如果檢視中不存在可以預測的度量，就會返回此錯誤。預測度量必須位於 [列] 或 [欄] 架上，而不是位於 [標記] 卡上。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">要預測的度量必須是數字。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">某些度量不能用數字來解釋，因此無法預測。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能為維度計算預測。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">要預測的值必須是度量，而不是維度。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">資料太多，無法計算預測。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">如果查詢結果集太大，則無法進行預測。限制值大約為 10,000 列。要修復預測，請在較高層級彙總時間系列（例如，在 [月份] 而不是 [週] 層級），或者篩選資料。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為資料劃分為太多的列、欄或色彩。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">透過篩選或刪除某些維度來簡化檢視以解決錯誤。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為檢視中包含表計算。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">建立不包含表計算的檢視版本。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為 [篩選器] 架上存在度量。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">從 [篩選器] 架刪除該度量。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為未選中<span class="uicontrol"> [彙總度量] </span>。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><span class="uicontrol">[彙總度量] </span>是 [分析] 功能表上的一個選項。請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/calculations_aggregation.htm" class="xref">Tableau 中的資料彙總</a>和<a href="https://help.tableau.com/current/pro/desktop/zh-tw/calculations_aggregation.htm#DisAggData" class="xref">如何分解資料</a>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為檢視中包含百分比計算。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><span class="uicontrol">[百分比] </span>是 [分析] 功能表上的一個選項。請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/calculations_percentages_options.htm" class="xref">在 Tableau 中計算百分比</a>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不能計算預測，因為啟用了 [總計] 或 [小計] 。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">可透過 [分析] 功能表中的<span class="uicontrol"> [合計] </span>命令來控制這些選項。請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/calculations_totals_grandtotal_turnon.htm" class="xref">在視覺效果中顯示合計</a>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">無法計算累乘模型，因為要預測的度量包含一個或多個小於或等於零的值。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">您建立了一個 [趨勢] 或 [季節性] 設定為<span class="uicontrol"> [累乘] </span>的自訂模型。變更此值，或者將 [預測模型] 設定為<span class="uicontrol"> [自動] </span>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">不允許存在帶累乘趨勢和累加季節的模型，因為其數值不穩定。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1">您已建立按錯誤訊息中所述的方式設定的自訂模型。變更自訂模型的設定，或將 [預測模型] 設定為<span class="uicontrol"> [自動]</span>。</td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyE-Column1-Body1">無法計算季節模型，因為時間系列太短。</td><td class="TableStyle-Basic-Border-BodyD-Column1-Body1"><p>擴展檢視中的時間系列以包括更多日期值。</p></td></tr><tr class="TableStyle-Basic-Border-Body-Body1"><td class="TableStyle-Basic-Border-BodyB-Column1-Body1">無法計算選定累乘模型，因為其中部分資料相對於其餘資料而言太過於接近於零。</td><td class="TableStyle-Basic-Border-BodyA-Column1-Body1">您已建立按錯誤訊息中所述的方式設定的自訂模型。變更自訂模型的設定，或將 [預測模型] 設定為<span class="uicontrol"> [自動]</span>。</td></tr></tbody></table>