第 2 部分,在 Power BI 報表中新增視覺效果 (教學課程)Part 2, Add visualizations to a Power BI report (Tutorial)

第 1 部分,您選取了欄位名稱旁邊的核取方塊來建立基本的視覺效果。In Part 1, you created a basic visualization by selecting checkboxes next to field names. 在第 2 部分,您會學習如何使用拖放及充分利用 [欄位] 和 [視覺效果] 窗格來建立和修改視覺效果。In Part 2 you'll learn how to use drag-and-drop and make full use of the Fields and Visualizations panes to create and modify visualizations.

先決條件Prerequisites

  • 第 1 部分Part 1
  • Power BI 服務 - 可以使用 Power BI 服務和 Power BI Desktop 將視覺效果新增至報表。Power BI service - visualizations can be added to reports using Power BI service or Power BI Desktop. 本教學課程會使用 Power BI 服務。This tutorial uses Power BI service.
  • 零售分析範例Retail Analysis sample

建立新的視覺效果Create a new visualization

本教學課程中,我們要深入探討零售分析資料集,並建立幾個重要的視覺效果。In this tutorial we'll dig into our Retail Analysis dataset and create a few key visualizations.

開啟報表並加入新的空白頁面。Open a report and add a new blank page.

  1. 開啟您已儲存零售分析範例的工作區。Open the workspace where you saved the Retail Analysis sample. 選取 [零售分析範例],以閱讀檢視開啟報表。Select Retail Analysis Sample to open the report in Reading View.

  2. 選取 [編輯報表] ,在編輯檢視中開啟報表。Select Edit Report to open the report in Editing View.

  3. 選取畫布底部的黃色加號圖示以新增頁面Add a new page by selecting the yellow plus icon at the bottom of the canvas.

加入視覺效果,查看本年度與去年度的比較銷售額。Add a visualization that looks at this year's sales compared to last year.

  1. 從 [銷售] 資料表中選取 [本年度銷售額] > [值] 和 [去年度銷售額]。From the Sales table, select This Year Sales > Value and Last Year Sales. Power BI 建立了直條圖。Power BI creates a column chart. 這個有點意思,而您想要更進一步探討。This is somewhat interesting, and you want to dig deeper. 每月的銷售額又會是如何呢?What do the sales look like by month?

  2. 從 [時間] 資料表中,將 [月份] 拖曳到 [軸] 區域。From the Time table, drag Month into the Axis area.
  3. 將視覺效果變更為區域圖。Change the visualization to an Area chart. 有許多視覺效果類型可從中選擇,請參閱其中各項說明、最佳做法的秘訣和教學課程,協助您決定要使用哪種類型。There are many visualization types to choose from - see descriptions of each, tips for best practices, and tutorials for help deciding which type to use. 從 [視覺效果] 窗格中選取區域圖圖示。From the Visualizations pane, select the Area chart icon.
  4. 選取省略符號,然後選擇 [依月份排序],排序視覺效果。Sort the visualization by selecting the ellipses and choosing Sort by Month.
  5. 選取視覺效果、抓取一個圓形外框,然後拖曳以調整視覺效果大小Resize the visualization by selecting the visualization, grabbing one of the outline circles and dragging. 讓它寬到消除捲軸,但提供足夠的空間以新增另一個視覺效果。Make it wide enough to eliminate the scrollbar and small enough to give us enough room to add another visualization.

  6. 儲存報表Save the report.

加入地圖視覺效果來依位置查看銷售Add a map visualization that looks at sales by location

  1. 從 [門市] 資料表中選取 [領域]。From the Store table, select Territory. Power BI 能夠辨識「領域」是一個位置,並建立地圖視覺效果。Power BI recognizes that Territory is a location, and creates a map visualization.
  2. 將 [門市總額] 拖曳到 [大小] 區域。Drag Total Stores into the Size area.
  3. 加入圖例。Add a legend. 若要依門市名稱查看資料,請將 [連鎖店] 拖曳到 [圖例] 區域。To see the data by store name, drag Chain into the Legend area.

後續步驟Next steps