Forum Discussion
How to combine multiple excel data using power query
- Dec 16, 2023
In attached file a query that combines all sheets in all workbooks
If this is what you want to do, update the Folder path with yours in sheet 'PARAM' > Refresh the query in sheet 'Query Result'
Are how things going with your various workbooks & worksheets 'Combination'?
can you please let me know how to apply same step to multiple queries? I have almost 26 queries and need to trim headers of those so instead of doing it one by one can we do it once for all 26 queries?
- LorenzoDec 28, 2023Silver Contributor
In the sample workbook I provided you the query trim the headers of all sheets in all workbooks, after promoting the headers:
TrimmedHeaders = Table.AddColumn(ExpandedSheetsAsTables, "CLEAN_HEADERS", each Table.TransformColumnNames( Table.PromoteHeaders([SHEET_TABLE], [PromoteAllScalars=true]), Text.Trim ), type table ),- Sumit_BhokareDec 28, 2023Brass Contributor
- LorenzoDec 28, 2023Silver Contributor
working on different excel which have multiple queries, so do I need to change anything
Maybe/I don't know. I don't have in front of me what you have. Share the workbook you're working with...