在报表中的表、矩阵或切片器中显示图像Display images in a table, matrix, or slicer in a report

改进报表的一个好方法是向报表添加图像。A good way to enhance your reports is to add images to them. 页面上的静态图像适用于某些用途。Static images on the page are good for some purposes. 但有时你想要与报表中数据相关的图像。But sometimes you want images that relate to the data in your report. 本主题将介绍如何在标、矩阵、切片器或多行卡片中显示图像。This topic teaches you how to display images in a table, matrix, slicer, or multi-row card.

表中的 URL 图像

将图像添加到报表Add images to your report

  1. 创建包含图像 URL 的列。Create a column with the URLs of the images. 有关要求的信息,请参阅本文后面的注意事项See Considerations later in this article for requirements.

  2. 选择此列。Select that column. 在“建模”功能区上,为“数据类别”选择“图像 URL”。 On the Modeling ribbon, for Data category, select Image URL.

    将“数据类别”设置为“图像 URL”

  3. 将此列添加到表、矩阵、切片器或多行卡片。Add the column to a table, matrix, slicer, or multi-row card.

    包含图像的切片器

注意事项Considerations

  • 图像必须是以下文件格式之一:.bmp、.jpg、.jpeg、.gif、.png 或 .svgThe image needs to be in one of these file formats: .bmp, .jpg, .jpeg, .gif, .png, or .svg
  • URL 必须可以匿名访问,未位于需要登录的站点上,如 SharePoint。The URL needs to be anonymously accessible, not on a site that requires a sign-in, such as SharePoint. 但是,如果图像托管在 SharePoint 或 OneDrive 上,你能够获取直接指向它们的嵌入代码。However, if images are hosted on SharePoint or OneDrive, you may be able to get an embed code that points directly to them.

后续步骤Next steps

页面布局和格式设置Page layout and formatting

Power BI 服务中设计器的基本概念Basic concepts for designers in the Power BI service

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