Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data table not populating after unzipping .gz file

Hi Team,

 

I have a folder with n number of .gz files in it on my local system. I wanted to load the data in Power BI for visualisation. I used the 2 codes for reference and followed the steps as given from Mark White blog for Reading Zip files in PowerQuery / M (sql10.blogspot.com).

Everything worked fine till table creation, but when I expand the table it is showing me Table is empty. Please find below SS for reerence. I can see data when I import the file and open it in excel.

Abhi1130_0-1671614679018.png

Abhi1130_1-1671614724762.png

 

Please suggest / help.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Please refer to the reply @Ricardo this blog:

vtangjiemsft_0-1672019291659.png

You can also refer to @Chris Webb's reply:

vtangjiemsft_0-1672019917428.png

 

Or change your folder structure to:

Parent_folder

  • Folder_A
    • Folder_A_1
      • file.gz
    • Folder_A_2
      • file.gz

And refer this:Solved: Decompress and load multiple .gz files from multip... - Microsoft Power BI Community

Solved: Unzip all the files - Microsoft Power BI Community

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
v-tangjie-msft
Community Support
Community Support

Hi @Anonymous ,

 

Refer this blog , please try to use Binary.Decompress() function:

vtangjiemsft_0-1671674280889.pngvtangjiemsft_1-1671674298164.png

 

If that doesn't help, check out the solutions for similar posts below that might help:

https://www.youtube.com/watch?v=OzQ44gwi5Kw

https://www.youtube.com/watch?v=S_lgoF-MCm4

 Decompress and load multiple .gz files from multip... - Microsoft Power BI Community

 Decompress .gz file on Sharepoint to Power BI - Microsoft Power BI Community

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Anonymous
Not applicable

Hi Neeko Tang,

 

The above code run perfectly for me, but just one more thing it is taking only 1 file at a time into consideration. I have a folder with mulltiple .gz files in it. 

 

I have to access n number of files so I need to provide a folder and it will auto take all the files in it.

 

Thanks in Advance

Hi @Anonymous ,

 

Please refer to the reply @Ricardo this blog:

vtangjiemsft_0-1672019291659.png

You can also refer to @Chris Webb's reply:

vtangjiemsft_0-1672019917428.png

 

Or change your folder structure to:

Parent_folder

  • Folder_A
    • Folder_A_1
      • file.gz
    • Folder_A_2
      • file.gz

And refer this:Solved: Decompress and load multiple .gz files from multip... - Microsoft Power BI Community

Solved: Unzip all the files - Microsoft Power BI Community

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.