Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I have multiple CSV files I am trying to combine in a query.
I am trying to do this without a function.
Two issues I am running into:
Is there a way I can promote headers for each CSV file before combining them without using a function, and within the same query?
Maybe it will be helpful for other people, just wrap yor Csv.Document() with Table.PromoteHeaders like this:
= Table.AddColumn(#"Removed Other Columns", "Custom", each Table.PromoteHeaders(Csv.Document([Content])))
This is the correct answer.
Hi @PowerBeeEye ,
Have you checked this link out?
It helped me to solve my problem but I eventually used the function instead of this.
But this might help you on your situation.
Hope this helps!
Why trying to avoid using a function? It is the way to do this one. You can create the function within the same query if needed.
Also, you can use Csv.Document to get your column of tables (one for each file), and then use a table function to remove the top row of each before expand/append the tables (but maybe it is too late by then?).
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
User | Count |
---|---|
30 | |
25 | |
24 | |
13 | |
9 |
User | Count |
---|---|
24 | |
19 | |
16 | |
13 | |
9 |