cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Export PBIT from PBIX and automate the process.

Export PBIT from PBIX and automate the process using power Shell or C# .

6 REPLIES 6
Akshay1994
New Member

Hi,

I am also looking for a similar solution. Has anyone got any insight for this?
It would be a great help.
Thanks

Akshay

smpa01
Super User
Super User

@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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






New Animated Dashboard: Sales Calendar


Anonymous
Not applicable

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






New Animated Dashboard: Sales Calendar


Anonymous
Not applicable

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

 

TeigeGao
Solution Sage
Solution Sage

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.
Snipaste_2019-04-11_10-14-50.png

Besides, I haven't found a official command line tool to do this.

Best Regards,

Teige

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.