原書第 9 章以 09/restaurant_orders.xlsx 示範 Advanced PivotTables。第一個分析問題是:哪些 Category 對總 Revenue 貢獻最高?
Orders 表包含 Order ID、Order Date、Dish、Category、Unit Price、Quantity、Waiter、Table、Payment Method、Channel、Revenue、Year、Month。
原書 Figure 9-2:
| Category | Sum of Revenue |
|---|---|
| Main Course | 590,078.71 |
| Second Course | 401,680.79 |
| Tasting Menu | 375,594.95 |
| Beverage | 223,341.10 |
| Dessert | 181,423.39 |
| Starter | 153,790.42 |
| Grand Total | 1,925,909.36 |
Prompt:Consider the Orders table. Create a PivotTable that shows total Revenue by Category and sort the values in descending order. 若 Copilot 無法直接排序,原書建議改問建表後的排序步驟。
Main Course 最高,Revenue 590,078.71;Starter 最低,153,790.42;全表 Grand Total 1,925,909.36。
類別營收排名可指出營收集中方向,但不能直接說明利潤或需求原因。若要做菜單決策,還需成本、quantity、margin 等資料。
請從 Orders 建立 PivotTable,Rows 使用 Category、Values 使用 Revenue 的 Sum,依 Revenue 降冪排序。建立後請列出 Grand Total 讓我與來源資料交叉核對。