SOLVED

Power Query & ODBC

%3CLINGO-SUB%20id%3D%22lingo-sub-3435557%22%20slang%3D%22en-US%22%3EPower%20Query%20%26amp%3B%20ODBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3435557%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20you%20are%20all%20well!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20new%20to%20Power%20Query%20and%20I%20have%20been%20trying%20to%20load%20data%20from%20an%20Excel%20workbook%20with%20several%20tabs%20%2F%20calculations%20into%20Power%20Query%20via%20the%20Data%20ribbon%20%26gt%3B%20Get%20Data%20%26gt%3B%20From%20File%20%26gt%3B%20From%20Excel%20Workbook.%26nbsp%3B%20I%20then%20select%20the%20excel%20sheets%20I%20wish%20to%20transform.%26nbsp%3B%20After%20transforming%20the%20data%2C%20I%20find%20launching%20the%20Power%20Query%20editor%20is%20very%20slow.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20such%2C%20I%20wanted%20to%20try%20to%20use%20ODBC%20instead%20to%20see%20if%20this%20would%20be%20any%20faster.%26nbsp%3B%20However%2C%20upon%20selecting%20the%20workbook%20for%20import%20under%20Data%20ribbon%20%26gt%3B%20Get%20Data%20%26gt%3B%20From%20Other%20Sources%20%26gt%3B%20From%20ODBC%20(and%20selecting%20the%20Data%20Source%20Name)%2C%20only%20tables%20(in%20my%20case%20the%20named%20ranges%20I%20created%20in%20the%20source%20file)%20were%20visible%20for%20selection%20and%20further%20transformation.%26nbsp%3B%20The%20excel%20worksheets%20themselves%20were%20not%20visible.%26nbsp%3B%20As%20such%2C%20can%20someone%20tell%20me%201)%20Is%20it%20possible%20to%20connect%20to%20excel%20binary%20files%20effectively%202)%20Is%20it%20not%20possible%20to%20transform%20Excel%20worksheets%20in%20ODBC%3F%203)%20If%20not%2C%20how%20can%20I%20make%20the%20first%20method%20I%20described%20above%20any%20faster%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%20for%20your%20help%20in%20advance%2C%20very%20much%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJudith%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3435557%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3435633%22%20slang%3D%22en-US%22%3ERe%3A%20Power%20Query%20%26amp%3B%20ODBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3435633%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1403657%22%20target%3D%22_blank%22%3E%40Judit950%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPower%20Query%20works%20with%20Excel%20binary%20files%20extremely%20slow%20and%20in%20background%20uses%20totally%20different%20(and%20limited)%20connector%20compare%20to%20ones%20for%20.xlsx%20files.%20Even%20if%20that's%20the%20same%20entry%20point%20From%20File-%26gt%3BFrom%20Excel%20workbook.%3C%2FP%3E%0A%3CP%3EYou%20may%20try%20From%20Database-%26gt%3BFrom%20MS%20Access%20database%2C%20select%20binary%20file%20and%20Transform%20-%20result%20will%20be%20the%20same%20since%20same%20mechanism%20uses%20both%20for%20binary%20files%20and%20MS%20Access%20database.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20don't%20think%20ODBC%20helps%2C%20however%20didn't%20test%20myself.%20Better%20to%20save%20file%20as%20.xlsx%20before%20query%20it%20-%20if%20that's%20possible.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3436135%22%20slang%3D%22en-US%22%3ERe%3A%20Power%20Query%20%26amp%3B%20ODBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3436135%22%20slang%3D%22en-US%22%3Ereally%3F!%3F%20Power%20Query%20is%20slower%20on%20binary%20files%3F%20I%20thought%201%20of%20the%20advantages%20of%20binary%20files%20was%20to%20improve%20performance.%20Learning%20something%20new%20everyday.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3438991%22%20slang%3D%22en-US%22%3ERe%3A%20Power%20Query%20%26amp%3B%20ODBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3438991%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BMany%20thanks%20for%20the%20information!%26nbsp%3B%20I%20tried%20to%20connect%20to%20the%20binary%20file%20via%20MS%20Access%20Database%20and%20this%20seems%20to%20have%20helped%20so%20thanks%20ever%20so%20much%20for%20the%20suggestion!%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi Everyone, 

 

I hope you are all well!

 

I am new to Power Query and I have been trying to load data from an Excel workbook with several tabs / calculations into Power Query via the Data ribbon > Get Data > From File > From Excel Workbook.  I then select the excel sheets I wish to transform.  After transforming the data, I find launching the Power Query editor is very slow.

 

A such, I wanted to try to use ODBC instead to see if this would be any faster.  However, upon selecting the workbook for import under Data ribbon > Get Data > From Other Sources > From ODBC (and selecting the Data Source Name), only tables (in my case the named ranges I created in the source file) were visible for selection and further transformation.  The excel worksheets themselves were not visible.  As such, can someone tell me 1) Is it possible to connect to excel binary files effectively 2) Is it not possible to transform Excel worksheets in ODBC? 3) If not, how can I make the first method I described above any faster?

 

Many thanks for your help in advance, very much appreciated!

 

Judith

3 Replies
best response confirmed by Hans Vogelaar (MVP)
Solution

@Judit950 

Power Query works with Excel binary files extremely slow and in background uses totally different (and limited) connector compare to ones for .xlsx files. Even if that's the same entry point From File->From Excel workbook.

You may try From Database->From MS Access database, select binary file and Transform - result will be the same since same mechanism uses both for binary files and MS Access database.

 

I don't think ODBC helps, however didn't test myself. Better to save file as .xlsx before query it - if that's possible.

really?!? Power Query is slower on binary files? I thought 1 of the advantages of binary files was to improve performance. Learning something new everyday.

@Sergei Baklan Many thanks for the information!  I tried to connect to the binary file via MS Access Database and this seems to have helped so thanks ever so much for the suggestion!