一、案例定位

原書選擇 Sales Analysis 後,Copilot 直接回傳熱門 dishes/categories 排名,卻沒有提供公式或中間步驟。作者因此加入「Don’t Trust Copilot Blindly」警告。

二、學習目標

三、案例情境

Prompt:Consider the Orders table. Identify the most popular dishes and categories by quantity sold and revenue generated.

四、開始資料

原書 Figure 9-17 的 Top Dishes by Quantity Sold 前十:

Rank Dish
1 Grilled Salmon
2 Margherita Pizza
3 Spaghetti Carbonara
4 Lemonade
5 Craft Beer
6 Sparkling Water
7 Espresso
8 House Wine (Glass)
9 Gelato Trio
10 Panna Cotta

Top Categories by Quantity Sold:Beverage、Main Course、Dessert、Second Course、Starter、Tasting Menu。

五、Excel/R/AI 分析方法

不要只接受排名。應要求 Copilot 提供:按 Dish/Category 分組的方法、Quantity 的加總公式或 PivotTable 配置、Revenue 的加總方式、中間數字與排序邏輯,然後在 Excel 重算。

六、計算結果

A 檔可確認 Figure 9-17 的上述排名,但同一畫面沒有展示計算過程或加總數字。因此本頁把排名記為來源中的 Copilot 輸出,而不宣稱已由 A 檔獨立驗證其數值正確性。

七、結果分析與管理解讀

這是 AI 分析的核心風險:圖表或排名「看起來合理」不能當作 audit trail。正式分析至少要能追溯到公式、PivotTable、SQL/Python 或其他可重算方法。

八、AI 提問詞

你剛才給了熱門 dishes/categories 排名。現在請不要再直接給結論,而是展示你如何計算:列出分組欄位、加總欄位、公式或 PivotTable 配置、中間 totals 與排序方式,讓我能在 Excel 逐步重算。