错误:我们在你的 Excel 工作簿中找不到任何数据

注意

本文适用于 Excel 2007 及更高版本。

将 Excel 工作簿导入 Power BI 服务中时,你可能会看到以下错误:

Error: We couldn't find any data formatted as a table. To import from Excel into the Power BI service, you need to format the data as a table. Select all the data you want in the table and press Ctrl+T.

Screenshot shows dialog explaining that the Power BI service couldn't find data in workbook.

快速解决方案

  1. 在 Excel 中编辑工作簿。
  2. 选择包含你的数据的单元格范围。 第一行应包含列标题,即列名。
  3. 按 Ctrl + T 可创建表。
  4. 保存工作簿。
  5. 返回到 Power BI 服务并再次导入工作簿,如果你使用的是 Excel 2016,并且已将工作簿保存到 OneDrive 工作版或学校版,请在 Excel 中,选择“文件”>“发布”。

详细信息

原因

在 Excel 中,可以通过某一范围的单元格创建,这样可以更方便地对数据进行排序、筛选和设置格式。

当你导入 Excel 工作簿时,Power BI 会查找这些表,并将它们导入语义模型。 如果它找不到任何表,你会看到此错误消息。

解决方案

  1. 在 Excel 中打开工作簿。

    注意

    此处的图片属于 Excel 2013。 如果你使用的是不同版本,显示的内容可能稍有不同,但步骤是相同的。

    Screenshot shows the Excel workbook opened.

  2. 选择包含你的数据的单元格范围。 第一行应包含列标题,即列名。

    Screenshot shows the Excel workbook with a range of cells selected.

  3. 在功能区的“插入”选项卡上,选择“表”。 或者使用快捷方式,按 Ctrl + T。

    Screenshot shows insert table selected.

  4. 你会看到以下对话框。 确保选中“我的表包含标题”,然后选择“确定”。

    Screenshot shows the Create Table dialog.

    现在已将数据格式设置为表。

    Screenshot shows data in Excel formatted as a table.

  5. 保存工作簿。

  6. 返回到 Power BI 服务。 选择“创建”,然后选择“这些选项”。

    Screenshot shows the Create page with these options highlighted.

  7. 在“添加数据以开始使用”窗口中,选择“Excel”。

    Screenshot shows Add data to get started where you can choose Excel files.

  8. 再次导入 Excel 工作簿。 这次导入应找到表并且成功。

如果导入仍失败,请选择帮助菜单中的“社区”来告诉我们:

Screenshot shows the community link where you can follow up if the issue persists.