Forum Discussion

stevelam9569's avatar
stevelam9569
New Member
4 years ago
Solved

Splitting a large data souce Excel into few smaller excel

Hi, I have large excel which is updated every month and it is growing .  I wanted to split the excel into few smaller excel based on the Year of the data . However , I not sure how to do it for my Power BI report which currently all the pages of report are pointing to a single excel Table. Please kindly help. Thanks

  • TheoC's avatar
    TheoC
    4 years ago

    Hi stevelam9569 

     

    No worries at all mate.  Firstly, here are a couple of links for you to look at:

     

    Alright, now to answer a few of your questions with answers (or additional questions lol):

     

    1. With regard to the five sheets in your Excel file, are they the identical structure?  Or is each sheet unique and for a different purpose?
    2. I believe that because you are changing the data source from a single source to a folder as source, you will likely need to do a bit of rework.
    3. Regarding all of the new Excel files each month, all you will need to do is literally save the Excel file down (with the same headers, etc.) to the folder that you are using as a source.  Then all you need to do once you save the file in the folder is go and press the refresh button. And that's it.

    Let me know if that makes sense or if you need further clarification.

     

    Theo 🙂

     

7 Replies

  • TheoC's avatar
    TheoC
    Icon for Community Champion rankCommunity Champion

    Hi stevelam9569 

     

    You can create a folder as source which allows you to have the main Excel file (i.e. historical to today) in the folder, then just add additional monthly Excel files in each month moving forward. 

     

    The benefit of this process is that you won't hit the 1,048,576 row limit that exists in Excel and, further, all of the transformations that you make on the initial file (which you can set as your Sample File) will be repeated upon refresh to every Excel file in the folder.

     

    If the folder as source gets extremely big (e.g. I build one solution that had TXT files being generated every 15 mins with 456 columns and up to 200,000 rows of data in each, with a total of 28GB of data at the time), then you can create parameters so that the refresh process only takes into account the most recent month's data and leave all historical data loaded as it was in the model (eliminating refresh overload and related complications).

     

    Hopefully that helps and makes sense. Happy to answer any other questions that you may have if needed.

     

    All the best.

    Theo

     

    • stevelam9569's avatar
      stevelam9569
      New Member

      Hi Theo, thank you for the reply.

      Your suggestion looks good. However, I a Power BI newbie and does not quite understand how to go about it. Do you have any link that describe the steps.

      Just a bit clarification, currently, i need to update the Main excel file which have 5 worksheets in it.

      Then all these all generating the charts and tables in the Power BI report. In the suggestion, i will need to change the datasource to point to a folder instead of the main excel file. Is that correct and how to do that in the data source setting ? Next you mentioned that every month , i will need to do the below (  just add additional monthly Excel files in each month moving forward. ) Are you saying, i created a new excel with the same headers and place into this new folder.

      Thanks you for your kind assistance.

       

      • TheoC's avatar
        TheoC
        Icon for Community Champion rankCommunity Champion

        Hi stevelam9569 

         

        No worries at all mate.  Firstly, here are a couple of links for you to look at:

         

        Alright, now to answer a few of your questions with answers (or additional questions lol):

         

        1. With regard to the five sheets in your Excel file, are they the identical structure?  Or is each sheet unique and for a different purpose?
        2. I believe that because you are changing the data source from a single source to a folder as source, you will likely need to do a bit of rework.
        3. Regarding all of the new Excel files each month, all you will need to do is literally save the Excel file down (with the same headers, etc.) to the folder that you are using as a source.  Then all you need to do once you save the file in the folder is go and press the refresh button. And that's it.

        Let me know if that makes sense or if you need further clarification.

         

        Theo 🙂

         

  • Thank you Ritesh.

    Any other method to reduce the Master excel size so that each month I do not have to upload a very large excel into the power BI