Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Export PBIT from PBIX and automate the process using power Shell or C# .
Hi,
I am also looking for a similar solution. Has anyone got any insight for this?
It would be a great help.
Thanks
Akshay
@Anonymous@Anonymous this is a great question and powershell is to rescue.
Source-> is a folder where you have all the pbix to be batch-converted to pbit
Destination-> is a folder where you will keep all converted pbit file
$items = Get-ChildItem -Path "C:\Users\Source"
$move =For ($i = 0; $i -lt $items.Length; $i++) {
# Write-Host $items[$i] ([System.IO.Path]::GetFileNameWithoutExtension($items[$i]))
Copy-Item -Path "C:\Users\Source\$($items[$i])" -Destination "C:\Users\Destination\$(([System.IO.Path]::GetFileNameWithoutExtension($items[$i]))).pbit"
}
Please run the above from PowerShell ISE to do the batch conversion from source to destination
From what I understand, you are using PowerShell to change the file extension from PBIX to PBIT. But,this is not going to remove the data from PBIX. Isn't it?
let me get back to you later on this
Hello @Anonymous ,
I have a similar problem. Did you manage to find a solution ?
I am surprised that MS has not addressed this issue.
Thanks,
Sau
Hi @Anonymous ,
Based on my test, PowerBI desktop executive file only provides a parameter to run pbix file, we can only export pbit via PowerBI desktop manually.
Besides, I haven't found a official command line tool to do this.
Best Regards,
Teige
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
82 | |
53 | |
40 | |
35 |