Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
We are trying to ingest multiple gzipped CSV files for a project. We can ingest a single gzipped file with the following:
let Source = File.Contents("C:\Users\username\something.csv.gz"), Decompressed = Binary.Decompress(Source, Compression.GZip), #"Imported CSV" = Csv.Document(Decompressed,[Delimiter=",", Columns=28, Encoding=1252, QuoteStyle=QuoteStyle.None]), #"Promoted Headers" = Table.PromoteHeaders(#"Imported CSV", [PromoteAllScalars=true]), #"Changed Type" = ....snipped... in #"Changed Type"
And we can import multiple plain CSV files from a directory using the directory source type. What I can't figure out how to do is to import multiple gzipped files in a directory. How do we apply the "Binary.Decompress" to each file in a directory as part of the load?
Solved! Go to Solution.
@thomas_pike ,
You can create a function in Power BI Desktop as discussed in this similar thread, then invoke this function.
Regards,
Lydia
@thomas_pike ,
You can create a function in Power BI Desktop as discussed in this similar thread, then invoke this function.
Regards,
Lydia
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
7 | |
6 | |
6 |