Skip to main content
Microsoft Idea

Power BI

Needs Votes

Powershell automation to create new pbix files from templates (pbit files)

Vote (582) Share
Andy's profile image

Andy on 03 Dec 2017 13:56:06

Now that we have pbit files to help create new pbix files quickly it would be great to be able to automate this process.

Perhaps we could have some Powershell commands that would allow you to pass the needed parameters and output a new pbix file.

Comments (75)
Andy's profile image Profile Picture

Karl Beran on 05 Jul 2020 23:19:49

RE: Powershell automation to create new pbix files from templates (pbit files)

along the lines of https://msdn.microsoft.com/en-us/library/mt826236.aspx

Andy's profile image Profile Picture

Xiao Chen on 05 Jul 2020 23:18:20

RE: Powershell automation to create new pbix files from templates (pbit files)

This would also help from privacy compliance perspective. We don't want old data to stay in the file.

Andy's profile image Profile Picture

Power BI User on 05 Jul 2020 23:17:45

RE: Powershell automation to create new pbix files from templates (pbit files)

This would also make working with PBI in source control dramatically easier. 1+ gig datasets don't play nicely on any source control platform and the pbit workaround is not ideal at all.

Andy's profile image Profile Picture

Power BI User on 05 Jul 2020 22:39:35

RE: Powershell automation to create new pbix files from templates (pbit files)

https://powerbi.microsoft.com/en-us/blog/upload-a-local-pbix-file-using-the-import-api/

Andy's profile image Profile Picture

Power BI User on 05 Jul 2020 22:27:46

RE: Powershell automation to create new pbix files from templates (pbit files)

'Yes the ability to upload .pbit files with REST API + passing parameters on the fly would mean we can auto-populate new client projects using Embedded with a standard PowerBI report but with parameters specific to that client. Like the URL or connection string to their data.

I can see that reports are now supported in Beta, to me this is less useful. My data can all be pulled in a refreshed through PowerBI Web so uploading the dataset is meaningless.

- Upload template
- Supply parameters
- Return ReportID for my app to use
- Refresh data immediately to populate report
- Allow me to set refresh options on the report or set it for the group or something

= Automated standard reporting for multiple clients using Embedded

Merged Idea (7)