在 Power BI 中自定义视觉对象Custom visuals in Power BI

创建或编辑 Power BI 报表时,可以使用多种不同类型的视觉对象。When creating or editing a Power BI report, there are many different types of visuals available for you to use. 这些视觉对象显示在“可视化效果”窗格中。These visuals display in the Visualizations pane. 下载 Power BI Desktop 或打开 Power BI 服务 (app.powerbi.com) 时,这组视觉对象都已“预打包”。When you download Power BI Desktop or open Power BI service (app.powerbi.com), this set of visuals comes "pre-packaged."

不过,并不是只能使用这组视觉对象,选择省略号可以打开其他报表视觉对象源,即自定义视觉对象。But you are not limited to this set of visuals, selecting the ellipses opens up another source of report visuals: custom visuals.

自定义视觉对象由社区成员和 Microsoft 创建,托管在 AppSource 上。Custom visuals are created by members of the community and by Microsoft and are hosted on AppSource. 可以下载这些视觉对象,并将它们添加到 Power BI 报表。These visuals can be downloaded and added to Power BI reports. 所有这些自定义视觉对象均已获得 Microsoft 批准。它们的行为与 Power BI 随附的预打包可视化效果相似,不同之处在于,它们可以进行筛选、突出显示、编辑、共享等。All of these custom visuals have been approved by Microsoft and they behave similar to the pre-packaged visualizations included with Power BI; they can be filtered, highlighted, edited, shared, etc.

什么是 AppSource?What is AppSource? 简而言之,可以在其中查找 Microsoft 软件的应用、加载项和扩展。Simply put, it is the place to find apps, add-ins, and extensions for your Microsoft software. AppSource 为 Office 365、Azure、Dynamics 365、Cortana 和 Power BI 等产品的数百万用户提供解决方案,帮助他们更高效、更有见地或更为完美地完成工作。AppSource connects millions of users of products like Office 365, Azure, Dynamics 365, Cortana, and Power BI to solutions that help them get work done more efficiently, more insightfully, or more beautifully than before.

两种类型的自定义视觉对象Two types of custom visuals

可以从 AppSource 获取的 Power BI 自定义视觉对象分为两类:已获准和已获认证。The Power BI custom visuals available from AppSource fall into 2 categories: approved and certified. AppSource 批准的视觉对象可以在浏览器、报表和仪表板中运行。AppSource approved visuals can be run in browsers, reports, and dashboards. Power BI 取得认证的视觉对象已通过严格的测试,支持用于其他情形,如电子邮件订阅导出到 PowerPointPower BI certified visuals have passed rigorous testing, and are supported in additional scenarios, such as email subscriptions, and export to PowerPoint.

若要查看已认证的自定义视觉对象列表或提交你自己的自定义视觉对象,请参阅已认证的自定义视觉对象To see the list of certified custom visuals or to submit your own, see Certified custom visuals.

你是 Web 开发者吗?对创建自己的可视化效果,并将它们添加到 AppSource 感兴趣吗?Are you a Web developer and interested in creating your own visualizations and adding them to AppSource? 请参阅开发人员工具入门,了解如何将自定义视觉对象发布到 AppSourceSee Get started with Developer Tools and learn how to publish custom visuals to AppSource.

从 Microsoft AppSource 下载或导入自定义视觉对象Download or import custom visuals from Microsoft AppSource

下载和导入自定义视觉对象的方法有两种,可以在 Power BI 中获取,也可以从 AppSource 网站获取。You have two options for downloading and importing custom visuals; from within Power BI and from the AppSource website.

在 Power BI 中导入自定义视觉对象Import custom visuals from within Power BI

  1. 选择“可视化效果”窗格底部的省略号。Select the ellipses from the bottom of the Visualizations pane.

  2. 在下拉列表中,选择“从存储导入”。From the dropdown, select Import from store.

  3. 滚动浏览列表,找到要导入的视觉对象。Scroll through the list to find the visual to import.

  4. 若要详细了解视觉对象之一,请选中它。To learn more about one of the visuals, highlight and select it.

  5. 在详细信息页中,可以查看屏幕截图、视频、详细说明等内容。On the detail page you can view screenshots, videos, detailed description and more.

  6. 滚动到底部可以查看评论。Scroll to the bottom to see reviews.

  7. 选择“添加”,导入自定义视觉对象。Import the custom visual by selecting Add. 现在,自定义视觉对象图标添加到“可视化效果”窗格底部,可供在报表中使用。The icon for the custom visual is added to the bottom of your Visualizations pane and is now available for use in your report.

从 Microsoft AppSource 下载和导入自定义视觉对象Download and import custom visuals from Microsoft AppSource

  1. 首先,访问 Microsoft AppSource,并选择“应用”选项卡。Start at Microsoft AppSource and select the tab for Apps.

  2. 此时,将会转到“应用结果”页。在此页中,可以查看每种类别的热门应用,包括 Power BI 应用。This takes you to the Apps results page where you can view top apps in each category, including Power BI Apps. 不过,由于要找的是自定义视觉对象,因此现在选择左侧导航列表中的“Power BI 视觉对象”,从而缩小结果范围。But we're looking for custom visuals, so let's narrow down the results by selecting Power BI visuals from the left navigation list.

  3. AppSource 显示每个自定义视觉对象的磁贴。AppSource displays a tile for each custom visual. 每个磁贴均有自定义视觉对象的快照、简短说明和下载链接。Each tile has a snapshot of the custom visual and gives a brief description and a download link. 如需了解更多详情,请选择磁贴。To see more details, select the tile.

  4. 在详细信息页中,可以查看屏幕截图、视频、详细说明等内容。On the detail page you can view screenshots, videos, detailed description and more. 选择“立即获取”,并同意接受使用条款,下载自定义视觉对象。Dowload the custom visual by selecting Get it now and then agreeing to the Terms of use.

  5. 单击自定义视觉对象下载链接。Select the link to download the custom visual.

    下载页还介绍了如何将自定义视觉对象导入 Power BI Desktop 和 Power BI 服务。The download page also include instructions on how to import the custom visual into Power BI Desktop and Power BI service.

    还可以下载包含自定义视觉对象并展示其功能的示例报表。You can also download a sample report that includes the custom visual and showcases its capabilities.

  6. 保存 .pbiviz 文件,再打开 Power BI。Save the .pbiviz file and then open Power BI.

  7. 打开要将自定义视觉对象添加到的报表,在“可视化效果”窗格底部依次选择省略号和“从文件导入”。Open the report where you'd like to add the custom visual and from the bottom of the Visualizations pane select the ellipses > Import from file.

  8. 选择自定义视觉对象文件,将此自定义视觉对象的图标添加到“可视化效果”窗格底部。Select the custom visual file to add the icon for that custom visual to the bottom of your Visualizations pane. 现在,自定义视觉对象可供在报表中使用。The custom visual is now available for use in your report.

注意事项和疑难解答Considerations and troubleshooting

  • 导入完成后,自定义视觉对象就已添加到特定报表。A custom visual is added to a specific report when imported. 若要在其他报表中使用此视觉对象,还需要将它导入相应报表。If you'd like to use the visual in another report, you need to import it into that report as well. 使用“另存为”选项保存包含自定义视觉对象的报表时,自定义视觉对象的副本与新报表一同保存。When a report with a custom visual is saved using the Save As option, a copy of the custom visual is saved with the new report.

  • 如果看不到“可视化效果”窗格,表示无权编辑报表。If you don't see a Visualizations pane, that means you do not have edit permissions for the report. 只能将自定义视觉对象添加到有权编辑的报表,不能添加到与自己共享的报表。You can only add custom visuals to reports you can edit, not to reports that have been shared with you.

更多问题?More questions? 尝试参与 Power BI 社区Try the Power BI Community