Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I have a master dataset that I would like to copy, deploy to multiple workspaces and change a dataset paramenter all with a script. From what I can tell, I should be able to do this with the XMLA endpoint, Is this something I can do with Tabluar editors advanced scripting?
I haven't found any good examples of this or alternative ways to do it. Any advice would be greatly appreciated 🙂
Hi @Anonymous ,
You can use PowerShell scripts to deploy a Power BI dataset to multiple workspaces. Here is an example script that imports a dataset to multiple workspaces:
PowerShell script that automatically uploads PowerBI report to list of Workspaces - Stack Overflow
Import-Module MicrosoftPowerBIMgmt
$oldReportName = "Fancy Report"
$pbixFilePath = "C:\Power BI\Fancy Report.pbix"
$username = "[email protected]"
$password = "P@ssw0rd" | ConvertTo-SecureString -asPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($username, $password)
Connect-PowerBIServiceAccount -Credential $credential | Out-Null
# -All - Returns all results, not only top 100
$workspaces = Get-PowerBIWorkspace -All -Scope Organization -Include All
foreach($workspace in $workspaces) {
$report = Get-PowerBIReport -WorkspaceId $workspace.Id -Scope Organization -Name $oldReportName
if ($report) {
Write-Host "Report $oldReportName found in workspace $($workspace.Name)..."
New-PowerBIReport -Path $pbixFilePath -Workspace $workspace -ConflictAction CreateOrOverwrite
}
}
Disconnect-PowerBIServiceAccoun
Related Cmdlet official documentations:
Get-PowerBIWorkspace (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn
New-PowerBIReport (MicrosoftPowerBIMgmt.Reports) | Microsoft Learn
Best Regards
Hi @Anonymous thank you for your response, when I try to push via the Rest api I get an error becasue my dataset it too big. This is way I wanted to use the XMLA endpoint.
Is there a way to use the Rest API for a large dataset?
Hi @Anonymous ,
You can follow the steps below to get it:
In addition, you can refer the following links to get it.
Dataset connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft Learn
Backup and restore Power BI Premium datasets - Power BI | Microsoft Learn
Power BI — backup and restore datasets | by Michal Molka | Medium
Best Regards
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |