Forum Discussion
Import Folder long path
- 7 years ago
Hi robofski ,
1. Create a parameter in Power query make the parameter is \\server\share\folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder.
2. Edit the M code in your Advanced editor to replace the file pate to parameter.
let Source = Folder.Files(""&Parameter1), #"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true), #"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File from New folder", each #"Transform File from New folder"([Content])), #"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}), #"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File from New folder"}), #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from New folder", Table.ColumnNames(#"Transform File from New folder"(#"Sample File"))), #"Changed Type" = Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Date", type date}, {"cat", type text}, {"Sales", Int64.Type}}) in #"Changed Type"
I have the same problem but sadly this solution does not work for me.
it´s like the small link is always the same
\\server\share\folder\another folder\another folder
and than comes long link with different folders
\folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder\another folder.....
so even with Parameter its too long.
need Halp
I would like to combine Excel files from different folders as a one list.
Hi Nodari
I amalso struggling with this as the proposed solution is not working for me.
Just wondering if you have managed to find a solution?
Many thanks
- Anonymous3 years agoNot applicable
The same for me. was there any other solution?
- mzulfarhan3 years agoNew MemberThe same also for me. Still looking for a proper solution as well.