从 Power BI Desktop 进行发布Publish from Power BI Desktop

Power BI Desktop 文件发布到 Power BI 服务后,模型中的数据以及你在“报表”视图中生成的所有报表都会发布到 Power BI 工作区。When you publish a Power BI Desktop file to the Power BI service, the data in the model and any reports you created in Report view are published to your Power BI workspace. 你将看一个同名的新数据集以及工作区导航器中的任何报表。You’ll see a new dataset with the same name, and any reports in your Workspace navigator.

Power BI Desktop 发布文件等效于在 Power BI 中使用“获取数据”连接并上载 Power BI Desktop 文件。Publishing from Power BI Desktop has the same effect as using Get Data in Power BI to connect to and upload a Power BI Desktop file.

备注

在报表 Power BI 中进行的任何更改(例如,添加、删除或更改报表中的可视化效果)将不会保存到原始 Power BI Desktop 文件中。Any changes you make in to the report Power BI, for example, add, delete, or change visualizations in reports, will not be saved to the original Power BI Desktop file.

发布 Power BI Desktop 数据集和报表To publish a Power BI Desktop dataset and reports

  1. 在 Power BI Desktop 中,单击>文件 > 发布 > 发布到 Power BI,或在功能区上单击发布In Power BI Desktop > File > Publish > Publish to Power BI or click Publish on the ribbon.
  2. 登录到 Power BI。Sign in to Power BI.

完成后,你将获得一个链接,可使用该链接在 Power BI 站点中打开报表。When complete, you'll get a link to open your report in your Power BI site.

重新发布或替换从 Power BI Desktop 中发布的数据集Re-publish or replace a dataset published from Power BI Desktop

发布 Power BI Desktop 文件后,数据集和你在 Power BI Desktop 中生成的所有报表都会上载到 Power BI 站点。When you publish a Power BI Desktop file, the dataset and any reports you created in Power BI Desktop are uploaded to your Power BI site. 重新发布 Power BI Desktop 文件后,Power BI 站点中的数据集将替换为 Power BI Desktop 文件中已更新的数据集。When you re-publish your Power BI Desktop file, the dataset in your Power BI site will be replaced with the updated dataset from the Power BI Desktop file.

此过程很直接,但你仍应了解几个事项 ︰This is all pretty straight forward, but there are a few things you should know:

  • 如果 Power BI 中有两个或多个与 Power BI Desktop 文件同名的数据集,则发布操作可能会失败。If you already have two or more datasets in Power BI with the same name as the Power BI Desktop file, publish could fail. 请确保你在 Power BI 中只具有一个同名的数据集。Make sure you have only one dataset in Power BI with the same name. 也可以重命名文件然后进行发布,这将创建一个与文件同名的新数据集。You can also rename the file and publish, creating a new dataset with same name as the file.
  • 如果重命名或删除列或度量值,则你已在 Power BI 中具有的含该字段的任何可视化可能会被破坏。If you rename or delete a column or measure, any visualizations you already have in Power BI with that field could be broken.
  • Power BI 将忽略对现有列某些格式的更改。Power BI ignores some format changes of existing columns. 例如,如果你将列的格式从 0.25 更改为 25%。For example, if you change a column’s format from 0.25 to 25%.
  • 如果你为 Power BI 中的现有数据集配置了刷新计划,然后重新发布添加了新数据源的文件,必须在执行下一次计划的刷新之前在“管理数据源”中签署它们。If you have a refresh schedule configured for your existing dataset in Power BI and you add new data sources to your file and then re-publish, you’ll have to sign into them in Manage Data Sources prior to the next scheduled refresh.