Power BI Desktop 中的报表视图Report View in Power BI Desktop

如果你一直在使用 Power BI,就知道它非常便于创建可为数据提供动态透视和深入见解的报表。If you’ve been working with Power BI, you know how easy it is to create reports providing dynamic perspectives and insights into your data. 在 Power BI Desktop 中,Power BI 还具有更高级的功能。Power BI also has more advanced features in Power BI Desktop. 通过 Power BI Desktop,可创建高级查询、混合多个源中的数据和创建表格之间的关系等。With Power BI Desktop, you can create advanced queries, mashup data from multiple sources, create relationships between tables, and more.

Power BI Desktop 提供报表视图,可在其中创建任何数量具有可视化内容的报表页。Power BI Desktop includes Report View, where you can create any number of report pages with visualizations. 此处报表视图所提供的设计体验与 Power BI 中报表的编辑视图所提供的几乎相同。Report View in provides pretty much the same design experience as a report’s Editing View in the Power BI service. 可四处移动可视化内容,进行复制粘贴、合并等。You can move visualizations around, copy and paste, merge, and so on.

两者的区别在于当使用 Power BI Desktop 时,可运用查询并对数据建模以确保数据支持报表中的最佳见解。The difference between them is when using Power BI Desktop, you can work with your queries and model your data to make sure your data supports the best insights in your reports. 无论在本地驱动器还是云中,都可在任何位置保存 Power BI Desktop 文件。You can then save your Power BI Desktop file wherever you like, whether it's your local drive or to the cloud.

我们来看一下吧!Let's take a look!

首次在 Power BI Desktop 中加载数据时,将显示具有空白画布的报表视图When you first load data in Power BI Desktop, you’ll see Report View with a blank canvas.

Power BI Desktop

通过选择左侧导航栏中的图标,可在报表视图、数据视图和关系视图之间切换 :You can switch between Report View, Data View, and Relationship View by selecting the icons in the left-hand navigation bar:

报表视图图标

添加一些数据后,可在画布中新建的可视化对象内添加字段。Once you’ve added some data, you can add fields to a new visualization in the canvas.

通过从“字段”窗格拖动来添加视觉对象

要更改可视化对象的类型,可在功能区的“可视化”组中将其选中,或者右键单击并从“更改可视化类型”图标中另选一种类型 。To change the type of visualization, you can select it from the Visualization group in the ribbon or you can right-click and select a different type from the Change visualization type icon.

通过选择新视觉对象来更改视觉对象

提示

请务必体验不同类型的可视化效果。Be sure to experiment with different visualization types. 可视化对象要能清楚的传达数据中的信息,这一点非常重要。It’s important your visualization convey information in your data clearly.

报表至少会提供一个可使用的空白页进行使用。A report will have at least one blank page to start. 页面将显示在画布左侧的浏览器窗格中。Pages appear in the navigator pane just to the left of the canvas. 可向页面添加各种类型的可视化效果,但请不要过度添加。You can add all sorts of visualizations to a page, but it's important not to overdo it. 如果页面上的可视化效果太多,将使其看起来杂乱,很难找到正确信息。Too many visualizations on a page will make it look busy and difficult to find the right information. 可以将新的页面添加到报表中。You can add new pages to your report. 只需单击功能区上的“新建页面”即可。 Just click New Page on the ribbon.

新建页图标

若要删除页面,请单击报表视图底部页面的选项卡上的 XTo delete a page, click the X on the page's tab at the bottom of the Report View.

向报表添加页面

备注

报表和可视化对象无法从 Power BI Desktop 固定到仪表板上。Reports and visualizations can’t be pinned to a dashboard from Power BI Desktop. 为此,需要从 Power BI Desktop 发布到 Power BI 站点。To do that, you’ll need to Publish from Power BI Desktop to your Power BI site.

在报表之间复制和粘贴Copy and paste between reports

可以轻松提取 Power BI Desktop 报表中的视觉对象并将其粘贴到其他报表中。You can easily take a visual from one Power BI Desktop report, and paste it into another report. 只需使用键盘快捷键 CTRL+C 来复制报表视觉对象,然后在其他 Power BI Desktop 报表中,使用 CTRL+V 将视觉对象粘贴到其报表中。Simply use the CTRL+C keyboard shortcut to copy your report visual, then in the other Power BI Desktop report, use CTRL+V to paste the visual into the other report. 可以一次选择一个视觉对象,或者可以选择页面上的所有视觉对象来进行复制,然后粘贴到目标 Power BI Desktop 报表中。You can select one visual at a time, or you can select all visuals on a page to copy, then paste into the destination Power BI Desktop report.

对于频繁生成和更新多个报表的用户来说,复制和粘贴视觉对象的功能很有用。The ability to copy and paste visuals is useful for people who build and updates multiple reports frequently. 在文件之间复制时,已在“格式设置”窗格中显式设置的设置和格式设置将继续保持,而依赖于主题或默认设置的视觉对象元素将自动更新为匹配目标报表的主题。When copying between files, settings and formatting that have been explicitly set in the formatting pane will carry forward, while visual elements relying on a theme or the default settings automatically update to match the theme of the destination report. 所以,当你获得设置了格式的视觉对象且其外观与你期望的完全相同时,可以复制该视觉对象并将其粘贴到新报表,并保留其所有合适的格式设置。So when you get a visual formatted and looking just the way you want, you can copy and paste that visual into new reports and preserve all that good formatting work.

复制/粘贴视觉对象出错 - 没有数据字段

如果你的模型中的字段不同,则将在视觉对象上看到错误消息和有关哪些字段不存在的警告。If the fields in your model are different, you’ll see an error on the visual and a warning about which fields don’t exist. 该错误类似于删除视觉对象正在使用的模型中的字段时看到的错误。The error is similar to the experience you see when you delete a field in the model that a visual is using. 若要更正此错误,只需将中断的字段替换为你想要从粘贴视觉对象的报表中的模型中使用的字段。To correct the error, just replace the broken fields with the fields you want to use from the model in the report to which you pasted the visual. 如果使用自定义视觉对象,还必须将该自定义视觉对象导入到目标报表。If you're using a custom visual, you must also import that custom visual to the destination report.

隐藏报表页Hide report pages

创建报表时,还可以隐藏报表中的页面。When you create a report, you can also hide pages from a report. 如果需要在报表中创建基础数据或视觉对象,但你不希望这些页面对其他人可见时(例如创建在其他报表页中使用的表格或支持视觉对象时),此功能可能很有用。This might be useful if you need to create underlying data or visuals in a report, but you don't want those pages to be visible to others, such as when you create tables or supporting visuals that are used in other report pages. 还有许多其他富有新意的原因:你可能想要创建报表页,然后在要发布的报表中隐藏该报表页。There are many other creative reasons you might want to create a report page, then hide it from a report you want to publish.

隐藏报表页的操作很简单。Hiding a report page is easy. 只需右击报表页选项卡,然后在显示的菜单中选择“隐藏” 。Simply right-click on the report page tab, and select Hide from the menu that appears.

隐藏页面选项

隐藏报表页时需要牢记以下几点注意事项:There are a few considerations to keep in mind when hiding a report page:

  • 在 Power BI Desktop 中,即使页面标题变灰,仍然可以看见隐藏的报表视图。在下图中,第 4 页是隐藏的。You can still see a hidden report view when in Power BI Desktop, even though the page's title is grayed out. In the following image, Page 4 is hidden.

    灰显隐藏的页面

  • 查看 Power BI 服务 中的报表时,无法 查看隐藏的报表页。You cannot see a hidden report page when viewing the report in the Power BI service.

  • 隐藏报表页不 是一种安全措施。Hiding a report page is not a security measure. 用户仍然可以访问该页面,并且仍可以使用钻取和其他方法访问页面的内容。The page can still be accessed by users, and its content is still accessible using drill-through, and other methods.

  • 页面处于隐藏状态时,在视图模式下,不显示任何视图模式导航箭头。When a page is hidden, when in View Mode, no view-mode navigation arrows are shown.