Forum Discussion
How combine multiple files from folder NO table
- 4 years ago
and after it should be like this :
Do not forget that the most left is 0, then 1. So you might have to change the number if your data are not on the most left sheet of your files.
You might have to add a step to promote headers but not always the case. Just check if your headers are in place otherwise add a step after Navigate to promote headers.
Tell us if it works...
Hi,
In your M code (Advanced editor, Power Query), you change just a little part of the code to "call" the sheet by its order number and not its name. So it won't be a problem even if your sheets in your files and in your folder have not the same name but they must be at the same place (in the same order).
Select the query called "transform the sample file" (not the function with fx)
and edit the M code via Advanced Editor.
Change the inside of {...} :
Source{[Item="Extract01",Kind="Sheet"]}[Data]Into :
Source{0}[Data]
It should do the trick, let us know...
- AilleryO4 years agoMemorable Member
If both queries have a reference to your sheets name, you need to change in both queries.
Otherwise just in the one, with sheets name 😉
The line with sheets name is always on top, should be the step called Navigate.
Let us know...
- Frixel4 years agoPost Prodigy
I loaded the data again and i have now one Transform sample file.
I put the code
= Source{0}[Data]into the place below in the navigation and this error happens
- AilleryO4 years agoMemorable Member
First, you need to select the query on the left, exactly as you did.
Then select the step Navigate on the right (Applied steps)
You should see in the formula bar (your picture) the old formula with the sheet name.
Once you've located this line you do the replacement in formula bar, in fact you need to modify the existing line, not to create a new one.
Tell us if it works...