Forum Discussion

NenadV's avatar
NenadV
Helper III
6 years ago

Filtering csv files from Azure Blob Storage

I have one question that might sound stupid, but I could not find answer anywere, so here it is. When we connect to data source, is whole data downloaded immediately when we click on transform button, or we are just working with data sample in power query, and when we click on close and apply data is being downloaded? I am asking this because I am creating report using data that is stored in Azure Blob Storage and there are a lot of csv files, 100+, and I only need 10-15 files. I filter files that I need, then combine their content and than load to model. So I am wondering, are all this 100+ files downloaded to my machine and then filtered locally, or that filter is somehow performed in azure blob storage and just necessery files are downloaded?

7 Replies

  • edhans's avatar
    edhans
    Community Champion

    All filtering is done locally. Azure DataLake and Storage Blob do nothing on their end.

     

    You can filter the file names though before you begin the COMBINE operation. No file contents are downloaded until you click combine.

     

    So in this article, you could filter the files before you combine them assuming your can filter by file date or name. If you need to filter based on data in the files then you have no choice but to filter after the combine.

     

    As a rule Power Query only shows the first 1,000 records to aid in speeding up development, but with CSV files, it often gets bogged down. I've seen it take 4-5min per step as I am working with them.

    • NenadV's avatar
      NenadV
      Helper III

      I am filtering files by their name, before combine files step. I tried many combinations, just to test how it is working. When I do not filter anything and combine files and load everything, power bi download over 300 mb. When I do not filter anything and do not combine files (I just load info about files, like name, type, date created...) power bi again download over 300 mb, like in previous case. Even when I remove binary column. So i am not sure that power bi do not download content before combine files step. And when I filter files before combine files step, and load data, power bi download about 30mb (I leave just 10-15 files). So it seems to me that filtering of files by name is done in Azure blob storage and that whole content of files is downloaded when you load data, regardless of presence of combine files step. I do not have much experince with this, so I am not sure who all of that is done.

      • edhans's avatar
        edhans
        Community Champion

        You are saying that when you go to the storage blob and get a listing of the files, Power BI is downloading 300MB just to show you the folder listing?