安装 Power BI 示例报表Install Power BI sample reports

适用范围:Configuration Manager (Current Branch)Applies to: Configuration Manager (current branch)

从版本 2002 开始,可以将 Power BI 报表服务器与 Configuration Manager 报告集成。Starting in version 2002, you can integrate Power BI Report Server with Configuration Manager reporting. 有一些示例报表可供下载,你可以安装在 Configuration Manager 中。There are sample reports available for download that you can install in Configuration Manager. 本文介绍如何在 Configuration Manager 中安装 Power BI 示例报表。This article explains how to install the Power BI sample reports in Configuration Manager.

必备条件Prerequisites

下载示例报表Download the sample reports

若要下载示例报表:To download the sample reports:

  1. Microsoft 下载中心下载 Power BI 示例报表。Download the Power BI sample reports from the Microsoft Download Center.

  2. 保存 ConfigMgrSamplePowerBIReports.exe 文件。Save the ConfigMgrSamplePowerBIReports.exe file.

  3. 如果从其他设备下载文件,请将该文件移动到已安装 Microsoft Power BI Desktop(针对 Power BI 报表服务器进行了优化)的计算机。Move the file to a computer with Microsoft Power BI Desktop (Optimized for Power BI Report Server) installed if you downloaded it from a different device.

  4. 运行 ConfigMgrSamplePowerBIReports.exe 文件以提取 .pbit 文件。Run the ConfigMgrSamplePowerBIReports.exe file to extract the .pbit files.

安装示例报表Install the sample reports

若要安装示例报表:To install the sample reports:

  1. 在 Power BI 报表服务器上,在根 Configuration Manager 报表文件夹中创建一个名为 Sample Reports 的新文件夹。On the Power BI Report server, create a new folder called Sample Reports in the root Configuration Manager reporting folder.

    在根 Configuration Manager 报表文件夹中从 创建示例报表文件夹

  2. 启动 Microsoft Power BI Desktop(针对 Power BI 报表服务器进行了优化)。Launch Microsoft Power BI Desktop (Optimized for Power BI Report Server).

  3. 依次选择“文件”、“打开”,并导航到保存提取的 .pbit 文件的位置。Select File then Open and navigate to where you saved the extracted .pbit files.

  4. 选择从 ConfigMgrSamplePowerBIReports.exe 文件中提取的一个 .pbit 文件。Select one of the .pbit files you extracted from the ConfigMgrSamplePowerBIReports.exe file.

  5. 出现提示时,指定 Configuration Manager 数据库名称和数据库服务器名称,然后选择“加载”。Specify your Configuration Manager database name and database server name when prompted, then select Load.

    指定数据库和数据库服务器名称

    备注

    在加载或应用数据模型时,如果出现任何错误,请忽略。When loading or applying the data model, ignore any errors if you come across one. 例如,如果看到以下错误:“不支持在 DirectQuery 模式下从多个数据库连接到表”,请选择“关闭”。For example, if you see the following error: "Connecting to tables from more than one database isn't supported in DirectQuery mode", select Close. 然后刷新数据源设置:Then refresh the data source settings:

    1. 在 Power BI Desktop 的功能区中,选择“编辑查询”,然后选择“数据源设置”。In Power BI Desktop, in the ribbon, select Edit Queries, and then select Data source settings.
    2. 选择“更改源”,确认服务器和数据库名称,然后选择“确定”。Select Change Source, confirm your server and database names, and select OK.
    3. 关闭“数据源设置”窗口,然后选择“更改应用”。Close the data source settings window, and then select Apply changes.
  6. 加载报表数据时,选择“文件” > “另存为”,然后选择“Power BI 报表服务器”。When the report data is loaded, select File > Save As, then select Power BI Report Server.

    另存为 Power BI 报表服务器

  7. 将报表保存到在报表点上创建的 Sample Reports 文件夹。Save the report to the Sample Reports folder you created on the reporting point.

    保存到示例报表文件夹

  8. 对于任何其他示例报表,请重复上述步骤。Repeat the steps for any other sample reports. 完成时,请关闭 Microsoft Power BI Desktop(针对 Power BI 报表服务器进行了优化)。When you're done, close Microsoft Power BI Desktop (Optimized for Power BI Report Server).

  9. 在 Configuration Manager 控制台中,转到“监视” > “Power BI 报表” > “示例报表”。In the Configuration Manager console, go to Monitoring > Power BI Reports > Sample Reports.

  10. 右键单击其中一个报表,然后选择“在浏览器中运行”来启动该报表。Right-click on one of the reports and select Run in Browser to launch the report.

    从 Configuration Manager 控制台运行示例报表