Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

PowerBI API - Publish Report to PowerBI Service with different dataset name

I am creating a deployment plan to automate our PowerBI deployment.

 

When publishing reports using Powershell I want to append a version number to the dataset name, so that we can identify dataset version and they are not overwritten when the next version of the report is published.

For example:

  • Current Report Name: BillingAnalysis
  • Current Dataset Name: BillingAnalysis
  • New DatasetName: BillingAnalysis_v2

I am using the New-PowerBIReport cmdlet to publish pbix. I see a paramater to rename the report when publishing but that renames both the report and the dataset. Is there a way to rename only the dataset name?

 

1 Reply