Forum Discussion

PabloML's avatar
PabloML
Regular Visitor
2 years ago
Solved

Speed-up a query to retrieve Excel tables from sharepoint

Dear all,

 

I have a query that the latest step takes about 6/7 min. to load. I was wonder if I could do it differently and speed-up the process:

let

    Source = SharePoint.Files("sharepoint....", [ApiVersion = 15]),

    OnlyXLSXFiles = Table.SelectRows(Source, each ([Extension] = ".xlsx")),

    WorkbooksContent = Table.TransformColumns (OnlyXLSXFiles, {"Content", each Table.SelectRows(Excel.Workbook(_) , each [Kind] = "Table" )})

In

WorkbooksContent

 

Thanks.

  • If various sheets are not essential then you can try saving the file as a .csv - those are faster typically than Excel files.

2 Replies

  • If various sheets are not essential then you can try saving the file as a .csv - those are faster typically than Excel files.

    • jennratten's avatar
      jennratten
      Icon for Super User rankSuper User

      Hi PabloML Have you had a chance to take a look at this?  Please consider clicking Accept as Solution if this answered your question.  Thanks!