Forum Discussion
Removing data from .pbix file?
- 9 years ago
I've just been trying this myself and observed different behaviour depending on how you save the .pbit
File > Save As > .pbit = File size roughly equal to the original report
File > Export > Power BI Template = Significantly reduced file size
Just to confirm, which file size did you observe? My template file (.pbit) will be much smaller than the .pbix file.
A Power BI Report Template contains the definition of the Report (pages, visuals, etc.), Data Model definition (schema, relationships, measures, etc.) and Queries definition (collection of queries, including Query Parameters, etc.). In other words, a Power BI Report template includes pretty much everything that a Report file includes, with the exception of the data itself.
Best Regards,
Herbert
I've just been trying this myself and observed different behaviour depending on how you save the .pbit
File > Save As > .pbit = File size roughly equal to the original report
File > Export > Power BI Template = Significantly reduced file size
- MattAllington9 years agoCommunity Champion
That's because the template removed the loaded data. As it's name suggest, it is just a template
- DarranShepherd9 years agoNew Member
Agreed. I was pointing out that the OP may have experienced the same where Save As template doesn't reduce the file size, but Export as template does.
- garrek999 years agoHelper I
You are totally right. Exporting as PBIT did the trick.
It's unfortunate that I never received your reply when you made it. (Came across it by accident today and after testing can confirm that it works.)
Thank you very much.
- tlaresch7 years agoAdvocate II
The templates are reduce to the same size for both "Save As" and for Export - it looks like Microsoft may have fixed the issue with Save As Template since this discussion took place over a year ago. I started with a 41 MB file (one million rows), and the PBIT templates save and export as 24 KB.