第 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 识别出 Territory 是一个位置,并创建地图可视化对象。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