在 Power BI 服務 中從 Excel 檔案建立報表

適用於:Power BI Desktop Power BI 服務

您已閱讀 Power BI 中的報表,現在想要建立自己的報表。 建立報表的方式有不同。 在本文中,我們會從 Excel 檔案的 Power BI 服務 中建立基本報表開始。 一旦您瞭解建立報表的基本概念,請參閱 相關內容 以取得更多文章。

必要條件

匯入 Excel 檔案

建立報表的這個方法會從檔案和空白報表畫布開始。 如果您想要跟著做,請下載 零售分析範例 Excel 檔案 ,並將它儲存到您的電腦或 OneDrive for Work 或 school。

  1. 在瀏覽窗格中,選取 [我的工作區]。 然後選取 [新增>語意模型]。

    Screenshot of the Power BI service, highlighting New and Semantic model.

  2. 選取 [Excel]。

    Screenshot of the Add data to get started dialog, highlighting Excel.

  3. 選取 [ 瀏覽此裝置]。 移至您儲存零售分析範例的位置,然後選取 [ 開啟]。

    Screenshot of Select a file dialog, highlighting the Retail Analysis Sample.

    匯入 Excel 檔案之後,它會列為 工作區清單中的語意模型

  4. 在語意模型旁邊,選取 [更多選項],然後選擇 [ 建立報表]。

    Screenshot of My workspace, highlighting more options and Create report.

  5. 報表編輯器隨即開啟。

    Screenshot of the Power BI service report editor.

提示

選取功能表圖示以隱藏瀏覽窗格,以提供更多空間。

Screenshot highlighting the Hide the navigation pane icon.

將星形量測計新增至報表

既然已匯入語意模型,讓我們開始回答一些問題。 我們的首席行銷官(CMO)想知道公司要達到今年的銷售目標有多近。 瞭解如何使用Power BI報表中的 [視覺效果] 來顯示這類資訊的可視化選擇。

  1. 在 [數據] 窗格中,選取 >[銷售今年銷售總銷售額>差異]。

    Screenshot of the report editor, highlighting the Data pane, Sales, This Year Sales, and Value.

  2. [視覺效果] 窗格中選取量測計範本圖示,將視覺效果轉換成量測計。

    Screenshot of the visual and the Visualizations pane, highlighting the Gauge template icon.

  3. 將 [今年銷售目標]>>拖曳至 [目標] 值。 看起來像我們接近我們的目標。

    Screenshot of the Visualizations and Data panes, highlighting Target value and Goal.

  4. 現在會是儲存報表的好時機。

    Screenshot highlighting the Save this report option.

將分區圖和交叉分析篩選器新增至報表

我們的 CMO 還有其他問題可供我們回答。 他們想知道今年的銷售額與去年的比較。 他們還希望看到地區的結果。

  1. 首先,讓我們在畫布上騰出一些空間。 選取量測計並將它移至右上角。 然後抓取並拖曳其中一個角落,使其更小。

  2. 取消選取量測計。 在 [數據] 窗格中,選取 >[銷售今年銷售>值],然後選取 [>去年銷售額]。

    Screenshot of the visualization with Last Year Sales and Value selected in the Data pane.

  3. [視覺效果] 窗格中選取分區圖範本,將視覺效果轉換成分區圖。

  4. 選取 [時間>週期],將它新增至 X 軸。

    Screenshot of the Visualizations pane, highlighting Period in the X axis.

  5. 若要依時間週期排序視覺效果,請選取省略號,然後選擇 [依期間排序]。

  6. 現在讓我們新增交叉分析篩選器。 選取畫布上的空白區域,然後選擇交叉分析篩選器 範本。 我們現在的畫布上有空的交叉分析篩選器。

    Screenshot showing an empty slicer on the canvas.

  7. 從 [數據] 窗格中,選取 [區域區域>]。 移動交叉分析篩選器並重設大小。

    Screenshot of the slicer, highlighting District in the Visualizations pane.

  8. 使用交叉分析篩選器依地區尋找模式和深入解析。

    Animation showing the results of different selections with the slicer.

繼續探索您的數據並新增視覺效果。 當您發現特別有趣的深入解析時,瞭解如何使用從報表建立Power BI儀錶板將它們釘選到儀錶板