New Member
May 28, 2020
Hello,
although I am aware it is quite a common issue, I hope you can help me. I have read many posts about this topic, and applied many different approaches, but unsuccessfully.
I have a power query that retrieves the data from around 35 different excel file, each with the same identical table, and I conbine them one below the other.
I can easily see the data in the power query editor mode, and after have filtered the rows with no values, I am ready to refresh the proper excel. However it takes so long and it is really inefficient. Below, the advanced editor code . Hope you can have some smart advice ( I already tried with table.buffer in place of source, unflag "allow data preview to download in the background)
Thanks! You can save my life!
...
Source = Folder.Files("C:\Users\Hqdecand\Desktop\lease\Roll-forward files 2020"),
#"Filtered Hidden Files1" = Table.SelectRows(Source, each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File from Lessee", each #"Transform File from Lessee"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File from Lessee"}),
#"Expanded Transform File from Lessee1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File from Lessee", {"Region", "Country", "HFM Entity code", "Entity legal name", and many more columns name )
#"Filtered Rows" = Table.SelectRows(#"Expanded Transform File from Lessee1", each ([Currency] <> null)),
#"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Source.Name", type text}, {"Region", type text}, {"Country", type text}, {"HFM Entity code", type text}, {"Entity legal name", type text}, and many more columns name, the same as above})
in
#"Changed Type"
Power Query
Power Pivot
Xtreme Pivot Tables
Excel for Decision Making
Excel for Finance
Excel Analysis Toolpak
Power BI
Excel
Word
Outlook
Excel Expert
Excel Customer Service
PowerPoint
November 8, 2013
Hi Andrea,
I'm not seeing Table.Buffer anywhere.
There is another function: #"Invoke Custom Function1", can you provide the query code for that?
The code looks like the automatic code build using PQ Combiner. This is usually not flexible, many values are hard typed in code. Check this topic, will see there a different way of doing things, without the default file combiner. The functions will combine all files/sheets from a folder, no matter what structure they have.
If you can upload a sample source file, will help you with a new query structure, hopefully more efficient.
1 Guest(s)