Forum Discussion

garrek99's avatar
garrek99
Helper I
10 years ago
Solved

Removing data from .pbix file?

Does anyone know how to dump the data from a report file (while leaving everything else intact)?

 

We are backing up our report files daily and each file is like 300+MB.

 

Is there a way of dumping the data and retaining the queries and report configurations?

Basically stripping away the data is what want to be able to do.

 

Out reports get published online and the Enterprise gateway takes care of the data and the scheduled refreshes. We don't need to back up the data everyday and are wasting valuable disk space.

 

Thank you

  • 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

17 Replies

  • tjd's avatar
    tjd
    Impactful Individual

    A report without data is no longer a report, it's just a shell.  In the BI venacular, that would be a template (.pbit).  However, it tells you nothing without the corresponding data.  So, I see no value in keeping daily backups of it because it won't tell you anything without the corresponding data for that date.  You'd be better off printing a .pdf of the report (but now it's static) if you're interested in going back and seeing what the report said on a given date and are concerned about saving storage space.

    • garrek99's avatar
      garrek99
      Helper I

      Hi

       

      The value in the file without the data is the code that went into creating all the measures & columns in the different tables, the query manipulations and the considerable configuration that goes into achieving the best visuals. 

      We don't care about the data at the time the file is saved because the Dashboards are viewed online.

       

      We want to be able to develop on the desktop with the data present, publish it and only then save the file after stripping the unnecessary data. And you are correct, they will be more like shells rather than reports and that's exactly what we want.

       

      Do you see what we are trying to accomplish?

       

      I work for a large org with an initial team of like 6 people trying to get PowerBI instituted as the Enterprise reporting tool. Down the line the team will have more like 2 people but right now we are struggling with sharing files and organizing them. There are dozens of reports that need to be produced. To be able to work together we are storing these reports on shared drives and just waiting for 300+MB files to download and then saving them back up on that drive is a pain.

       

      I will do some research on what a .pbit is used for. Do you think it will fit the bill for us?

       

      TY

      • tjd's avatar
        tjd
        Impactful Individual

        If so, then you want to save your file as a .pbit.  Go to File|Save As| and select PowerBI Template (.pbit) as the file type.  It will strip out your data but save all your report pages and customizations and greatly reduce the file size.  Put a date-time stamp on the file name and you're ready to go!

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    garrek99 there is a way to dump data but that won't actually reduce your pbix file size. within query editor you have option of executing R script on your tables. so as a last step you can have R script that outputs your data into a csv but that will just take a dump out of your data. if you're interested in doing that then R script syntax will be,

     

     

    • garrek99's avatar
      garrek99
      Helper I

      The thing is that our data is on the cloud and we see no point in having a copy of it in a csv file.

       

      R is something we'll explore soon when we start playing with involved analytics.

       

      TY

      • v-haibl-msft's avatar
        v-haibl-msft
        Microsoft Employee

        garrek99

         

        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