Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I have 3 different csv files and do not want to go and filter each binary file like here in this link (it requires to creare 3 seperate queries):
Solved: How to transform multiple CSV files from Blob stor... - Microsoft Fabric Community
I want to get just all tables automatically (in dynamic way) based on file names in blob storage as seperated queries.
It is possible?
Best,
Jacek
Solved! Go to Solution.
Starting here:
Add a column with
Table.AddColumn(Source, "Custom", each Csv.Document([Content],[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.None]))
Produces this:
Keep/Remove any columns you want. I chose to only keep the original file name:
= Table.SelectColumns(#"Added Custom",{"Name", "Custom"})
Now press the little icon:
Select all the fields you want:
To produce this:
Now this is the simplest case. As you can see the column headings are repeated.
You can fix this by changing the "Table.Addcolumn".
For example like this:
= Table.AddColumn(Source, "Custom", each
let
csv = Csv.Document([Content],[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.None]),
csv_with_headers = Table.PromoteHeaders(csv, [PromoteAllScalars=true])
in csv_with_headers)
You will have to change the Expand columns step and you get this:
Did I answer your question? Then please mark my post as the solution and make it easier to find for others having a similar problem.
If I helped you, please click on the Thumbs Up to give Kudos.
Kees Stolker
A big fan of Power Query and Excel
Starting here:
Add a column with
Table.AddColumn(Source, "Custom", each Csv.Document([Content],[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.None]))
Produces this:
Keep/Remove any columns you want. I chose to only keep the original file name:
= Table.SelectColumns(#"Added Custom",{"Name", "Custom"})
Now press the little icon:
Select all the fields you want:
To produce this:
Now this is the simplest case. As you can see the column headings are repeated.
You can fix this by changing the "Table.Addcolumn".
For example like this:
= Table.AddColumn(Source, "Custom", each
let
csv = Csv.Document([Content],[Delimiter=",", Columns=8, Encoding=65001, QuoteStyle=QuoteStyle.None]),
csv_with_headers = Table.PromoteHeaders(csv, [PromoteAllScalars=true])
in csv_with_headers)
You will have to change the Expand columns step and you get this:
Did I answer your question? Then please mark my post as the solution and make it easier to find for others having a similar problem.
If I helped you, please click on the Thumbs Up to give Kudos.
Kees Stolker
A big fan of Power Query and Excel
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.